annotate mmio/Makefile @ 11:d5cb2cfc8eca

Initial revision
author darius
date Fri, 23 Jan 1998 16:05:11 +0000
parents
children 6218f9885552
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
1 # MMIO Library Makefile for Linux
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
2 # Divine Entertainment Game Programming Pack
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
3 #
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
4
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
5 ##########################
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
6 ## User settable macros ##
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
7 ##########################
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
8
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
9 Compiler = gcc
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
10 Librarian = ar
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
11 Compiler_Options = -O2 -I. -I../mikmod -I../include -g
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
12
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
13 Lib_file = ../lib/libmmio.a
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
14
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
15 Object_files = mmio.o mmalloc.o mmerror.o
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
16
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
17 ####################
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
18 ## Makefile rules ##
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
19 ####################
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
20
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
21 $(Lib_file): $(Object_files)
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
22 $(Librarian) r $(Lib_file) $(Object_files)
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
23
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
24 %.o: %.c
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
25 $(CC) -c $(Compiler_Options) $<
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
26
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
27 clean:
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
28 rm *.o
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
29 rm $(Lib_file)