comparison playercode/makefile.gcc @ 5:42e11dc15457

Initial revision
author darius
date Fri, 23 Jan 1998 16:05:08 +0000
parents
children
comparison
equal deleted inserted replaced
4:5d614bcc4287 5:42e11dc15457
1 # MikMod Library Makefile for DJGPP (*NOT* 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 Librarian = ar
12 Compiler_Options = -O2 -I. -I../include -g
13
14 Lib_file = ../lib/mikmod.a
15 Lib_file2 = ..\lib\mikmod.a
16
17 LoaderObjs = mloader.o mlreg.o npertab.o sloader.o load_uni.o \
18 load_mod.o load_m15.o load_mtm.o load_s3m.o load_stm.o load_669.o \
19 load_far.o load_dsm.o load_med.o load_xm.o load_ult.o load_it.o \
20 s3m_it.o
21
22 DriverObjs = mdriver.o mdreg.o drv_nos.o drv_raw.o dos_drv/mdma.o \
23 dos_drv/mirq.o dos_drv/gus.o dos_drv/gusdrv1.o dos_drv/gusdrv2.o \
24 dos_drv/sb.o dos_drv/sb16.o dos_drv/sbpro.o dos_drv/sndscape.o \
25 dos_drv/pas16.o dos_drv/awe32.o dos_drv/wss.o
26
27 DriverObjs2 = mdriver.o mdreg.o drv_nos.o drv_raw.o mdma.o \
28 mirq.o gus.o gus_drv1.o gus_mix.o sb.o sb16.o sbpro.o sndscape.o \
29 pas16.o awe32.o wss.o
30
31 PlayerObjs = mplayer.o
32
33 ####################
34 ## Makefile rules ##
35 ####################
36
37 all: $(Lib_file)
38
39 $(Lib_file): stream.o virtch.o resample.o munitrk.o \
40 $(LoaderObjs) $(DriverObjs) $(PlayerObjs)
41 del $(Lib_file2)
42 $(Librarian) r $(Lib_file) stream.o virtch.o resample.o munitrk.o \
43 $(LoaderObjs) $(DriverObjs2) $(PlayerObjs)
44
45 %.o: %.c
46 $(CC) -c $(Compiler_Options) $<
47
48 # capital S is very important!!!
49 %.o: %.S
50 $(CC) -c $(Compiler_Options) $<
51
52 clean:
53 del *.o
54 del dos_drv\*.o
55 del $(Lib_file2)