annotate mmio/Makefile @ 19:84565bb86869

Makefile Added clean rule
author darius
date Thu, 23 Apr 1998 22:59:21 +0000
parents 6218f9885552
children
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
14
6218f9885552 Clean up the Makefile
darius
parents: 11
diff changeset
11 RanLib = ranlib
11
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
12 Compiler_Options = -O2 -I. -I../mikmod -I../include -g
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)
14
6218f9885552 Clean up the Makefile
darius
parents: 11
diff changeset
23 $(RanLib) $(Lib_file)
11
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
24
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
25 %.o: %.c
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
26 $(CC) -c $(Compiler_Options) $<
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
27
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
28 clean:
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
29 rm *.o
d5cb2cfc8eca Initial revision
darius
parents:
diff changeset
30 rm $(Lib_file)