annotate playercode/makefile.gcc @ 7:de95ce2eacfd

Initial revision
author darius
date Fri, 23 Jan 1998 16:05:09 +0000
parents 42e11dc15457
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
42e11dc15457 Initial revision
darius
parents:
diff changeset
1 # MikMod Library Makefile for DJGPP (*NOT* Linux)
42e11dc15457 Initial revision
darius
parents:
diff changeset
2 # Divine Entertainment Game Programming Pack
42e11dc15457 Initial revision
darius
parents:
diff changeset
3
42e11dc15457 Initial revision
darius
parents:
diff changeset
4
42e11dc15457 Initial revision
darius
parents:
diff changeset
5 ####################
42e11dc15457 Initial revision
darius
parents:
diff changeset
6 ### User Options ###
42e11dc15457 Initial revision
darius
parents:
diff changeset
7 ####################
42e11dc15457 Initial revision
darius
parents:
diff changeset
8
42e11dc15457 Initial revision
darius
parents:
diff changeset
9 # Use the C or C++ compiler
42e11dc15457 Initial revision
darius
parents:
diff changeset
10 CC = gcc
42e11dc15457 Initial revision
darius
parents:
diff changeset
11 Librarian = ar
42e11dc15457 Initial revision
darius
parents:
diff changeset
12 Compiler_Options = -O2 -I. -I../include -g
42e11dc15457 Initial revision
darius
parents:
diff changeset
13
42e11dc15457 Initial revision
darius
parents:
diff changeset
14 Lib_file = ../lib/mikmod.a
42e11dc15457 Initial revision
darius
parents:
diff changeset
15 Lib_file2 = ..\lib\mikmod.a
42e11dc15457 Initial revision
darius
parents:
diff changeset
16
42e11dc15457 Initial revision
darius
parents:
diff changeset
17 LoaderObjs = mloader.o mlreg.o npertab.o sloader.o load_uni.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
18 load_mod.o load_m15.o load_mtm.o load_s3m.o load_stm.o load_669.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
19 load_far.o load_dsm.o load_med.o load_xm.o load_ult.o load_it.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
20 s3m_it.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
21
42e11dc15457 Initial revision
darius
parents:
diff changeset
22 DriverObjs = mdriver.o mdreg.o drv_nos.o drv_raw.o dos_drv/mdma.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
23 dos_drv/mirq.o dos_drv/gus.o dos_drv/gusdrv1.o dos_drv/gusdrv2.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
24 dos_drv/sb.o dos_drv/sb16.o dos_drv/sbpro.o dos_drv/sndscape.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
25 dos_drv/pas16.o dos_drv/awe32.o dos_drv/wss.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
26
42e11dc15457 Initial revision
darius
parents:
diff changeset
27 DriverObjs2 = mdriver.o mdreg.o drv_nos.o drv_raw.o mdma.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
28 mirq.o gus.o gus_drv1.o gus_mix.o sb.o sb16.o sbpro.o sndscape.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
29 pas16.o awe32.o wss.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
30
42e11dc15457 Initial revision
darius
parents:
diff changeset
31 PlayerObjs = mplayer.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
32
42e11dc15457 Initial revision
darius
parents:
diff changeset
33 ####################
42e11dc15457 Initial revision
darius
parents:
diff changeset
34 ## Makefile rules ##
42e11dc15457 Initial revision
darius
parents:
diff changeset
35 ####################
42e11dc15457 Initial revision
darius
parents:
diff changeset
36
42e11dc15457 Initial revision
darius
parents:
diff changeset
37 all: $(Lib_file)
42e11dc15457 Initial revision
darius
parents:
diff changeset
38
42e11dc15457 Initial revision
darius
parents:
diff changeset
39 $(Lib_file): stream.o virtch.o resample.o munitrk.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
40 $(LoaderObjs) $(DriverObjs) $(PlayerObjs)
42e11dc15457 Initial revision
darius
parents:
diff changeset
41 del $(Lib_file2)
42e11dc15457 Initial revision
darius
parents:
diff changeset
42 $(Librarian) r $(Lib_file) stream.o virtch.o resample.o munitrk.o \
42e11dc15457 Initial revision
darius
parents:
diff changeset
43 $(LoaderObjs) $(DriverObjs2) $(PlayerObjs)
42e11dc15457 Initial revision
darius
parents:
diff changeset
44
42e11dc15457 Initial revision
darius
parents:
diff changeset
45 %.o: %.c
42e11dc15457 Initial revision
darius
parents:
diff changeset
46 $(CC) -c $(Compiler_Options) $<
42e11dc15457 Initial revision
darius
parents:
diff changeset
47
42e11dc15457 Initial revision
darius
parents:
diff changeset
48 # capital S is very important!!!
42e11dc15457 Initial revision
darius
parents:
diff changeset
49 %.o: %.S
42e11dc15457 Initial revision
darius
parents:
diff changeset
50 $(CC) -c $(Compiler_Options) $<
42e11dc15457 Initial revision
darius
parents:
diff changeset
51
42e11dc15457 Initial revision
darius
parents:
diff changeset
52 clean:
42e11dc15457 Initial revision
darius
parents:
diff changeset
53 del *.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
54 del dos_drv\*.o
42e11dc15457 Initial revision
darius
parents:
diff changeset
55 del $(Lib_file2)