9
|
1 # MikMod Library Makefile for DJGPP Linux
|
|
2 # Divine Entertainment Game Programming Pack
|
|
3
|
|
4
|
|
5 ####################
|
|
6 ### User Options ###
|
|
7 ####################
|
|
8
|
|
9 # Use the C or C++ compiler
|
|
10 CC = gcc
|
|
11 CFLAGS = -O2 -I. -I../include -g -DOSS
|
|
12
|
|
13 Lib_file = ../lib/libmikmod.a
|
|
14
|
|
15 LoaderObjs = mloader.o mlreg.o npertab.o sloader.o load_uni.o \
|
|
16 load_mod.o load_m15.o load_mtm.o load_s3m.o load_stm.o load_669.o \
|
|
17 load_far.o load_dsm.o load_med.o load_xm.o load_ult.o load_it.o \
|
|
18 s3m_it.o
|
|
19
|
|
20 DriverObjs = mdriver.o mdreg.o drv_nos.o drv_raw.o drv_wav.o \
|
|
21 unix_drv/drv_oss.o
|
|
22 # unix_drv/drv_AF.o unix_drv/drv_aix.o unix_drv/drv_hp.o
|
|
23 # unix_drv/drv_sun.o unix_drv/drv_sgi.o
|
|
24
|
|
25 PlayerObjs = mplayer.o
|
|
26
|
|
27 ####################
|
|
28 ## Makefile rules ##
|
|
29 ####################
|
|
30
|
|
31 all: $(Lib_file)
|
|
32
|
|
33 $(Lib_file): stream.o virtch.o munitrk.o \
|
|
34 $(LoaderObjs) $(DriverObjs) $(PlayerObjs)
|
|
35 ar r $(Lib_file) stream.o virtch.o munitrk.o \
|
|
36 $(LoaderObjs) $(PlayerObjs) $(DriverObjs)
|
22
|
37 ranlib $(Lib_file)
|
9
|
38
|
|
39 clean:
|
|
40 rm *.o
|
|
41 rm unix_drv/*.o
|
|
42 rm $(Lib_file)
|