annotate playercode/Makefile @ 22:d9f79436e0af default tip

Makefile Add ranlib for the library
author darius
date Fri, 24 Apr 1998 08:05:26 +0000
parents 990c9dadb348
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
990c9dadb348 Initial revision
darius
parents:
diff changeset
1 # MikMod Library Makefile for DJGPP Linux
990c9dadb348 Initial revision
darius
parents:
diff changeset
2 # Divine Entertainment Game Programming Pack
990c9dadb348 Initial revision
darius
parents:
diff changeset
3
990c9dadb348 Initial revision
darius
parents:
diff changeset
4
990c9dadb348 Initial revision
darius
parents:
diff changeset
5 ####################
990c9dadb348 Initial revision
darius
parents:
diff changeset
6 ### User Options ###
990c9dadb348 Initial revision
darius
parents:
diff changeset
7 ####################
990c9dadb348 Initial revision
darius
parents:
diff changeset
8
990c9dadb348 Initial revision
darius
parents:
diff changeset
9 # Use the C or C++ compiler
990c9dadb348 Initial revision
darius
parents:
diff changeset
10 CC = gcc
990c9dadb348 Initial revision
darius
parents:
diff changeset
11 CFLAGS = -O2 -I. -I../include -g -DOSS
990c9dadb348 Initial revision
darius
parents:
diff changeset
12
990c9dadb348 Initial revision
darius
parents:
diff changeset
13 Lib_file = ../lib/libmikmod.a
990c9dadb348 Initial revision
darius
parents:
diff changeset
14
990c9dadb348 Initial revision
darius
parents:
diff changeset
15 LoaderObjs = mloader.o mlreg.o npertab.o sloader.o load_uni.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
16 load_mod.o load_m15.o load_mtm.o load_s3m.o load_stm.o load_669.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
17 load_far.o load_dsm.o load_med.o load_xm.o load_ult.o load_it.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
18 s3m_it.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
19
990c9dadb348 Initial revision
darius
parents:
diff changeset
20 DriverObjs = mdriver.o mdreg.o drv_nos.o drv_raw.o drv_wav.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
21 unix_drv/drv_oss.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
22 # unix_drv/drv_AF.o unix_drv/drv_aix.o unix_drv/drv_hp.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
23 # unix_drv/drv_sun.o unix_drv/drv_sgi.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
24
990c9dadb348 Initial revision
darius
parents:
diff changeset
25 PlayerObjs = mplayer.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
26
990c9dadb348 Initial revision
darius
parents:
diff changeset
27 ####################
990c9dadb348 Initial revision
darius
parents:
diff changeset
28 ## Makefile rules ##
990c9dadb348 Initial revision
darius
parents:
diff changeset
29 ####################
990c9dadb348 Initial revision
darius
parents:
diff changeset
30
990c9dadb348 Initial revision
darius
parents:
diff changeset
31 all: $(Lib_file)
990c9dadb348 Initial revision
darius
parents:
diff changeset
32
990c9dadb348 Initial revision
darius
parents:
diff changeset
33 $(Lib_file): stream.o virtch.o munitrk.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
34 $(LoaderObjs) $(DriverObjs) $(PlayerObjs)
990c9dadb348 Initial revision
darius
parents:
diff changeset
35 ar r $(Lib_file) stream.o virtch.o munitrk.o \
990c9dadb348 Initial revision
darius
parents:
diff changeset
36 $(LoaderObjs) $(PlayerObjs) $(DriverObjs)
22
d9f79436e0af Makefile
darius
parents: 9
diff changeset
37 ranlib $(Lib_file)
9
990c9dadb348 Initial revision
darius
parents:
diff changeset
38
990c9dadb348 Initial revision
darius
parents:
diff changeset
39 clean:
990c9dadb348 Initial revision
darius
parents:
diff changeset
40 rm *.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
41 rm unix_drv/*.o
990c9dadb348 Initial revision
darius
parents:
diff changeset
42 rm $(Lib_file)