11
|
1 # MMIO Library Makefile for Linux
|
|
2 # Divine Entertainment Game Programming Pack
|
|
3 #
|
|
4
|
|
5 ##########################
|
|
6 ## User settable macros ##
|
|
7 ##########################
|
|
8
|
|
9 Compiler = gcc
|
|
10 Librarian = ar
|
|
11 Compiler_Options = -O2 -I. -I../mikmod -I../include -g
|
|
12
|
|
13 Lib_file = ../lib/libmmio.a
|
|
14
|
|
15 Object_files = mmio.o mmalloc.o mmerror.o
|
|
16
|
|
17 ####################
|
|
18 ## Makefile rules ##
|
|
19 ####################
|
|
20
|
|
21 $(Lib_file): $(Object_files)
|
|
22 $(Librarian) r $(Lib_file) $(Object_files)
|
|
23
|
|
24 %.o: %.c
|
|
25 $(CC) -c $(Compiler_Options) $<
|
|
26
|
|
27 clean:
|
|
28 rm *.o
|
|
29 rm $(Lib_file)
|