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
|
14
|
11 RanLib = ranlib
|
11
|
12 Compiler_Options = -O2 -I. -I../mikmod -I../include -g
|
|
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)
|
14
|
23 $(RanLib) $(Lib_file)
|
11
|
24
|
|
25 %.o: %.c
|
|
26 $(CC) -c $(Compiler_Options) $<
|
|
27
|
|
28 clean:
|
|
29 rm *.o
|
|
30 rm $(Lib_file)
|