ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/CGIRenegadeMapSelector/GNUmakefile
Revision: 144
Committed: 2003-05-09T00:27:56-07:00 (19 years, 8 months ago) by douglas
File size: 645 byte(s)
Log Message:
Blah!

File Contents

# Content
1 # Renegade Map Selector
2 #
3 # Douglas Thrift
4 #
5 # GNUmakefile
6
7 OS = ${shell uname}
8
9 CSRC = CGIRenegadeMapSelector.cpp RenegadeConfig.cpp MapSelector.cpp
10 HDRS = ${patsubst %.cpp, %.h, ${CSRC}}
11 OBJS = ${patsubst %.cpp, %.o, ${CSRC}}
12 EXEC = mapselector.cgi
13
14 ifndef (CPPC)
15 ifeq (OS, "Linux")
16 CPPC = g++31
17 else
18 CPPC = linux-g++31
19 endif
20 endif
21 ifndef (CPPCOPT)
22 CPPCOPT =
23 endif
24 ifndef (CPPCDEP)
25 CPPCDEP = -MM
26 endif
27
28 all: ${EXEC}
29
30 ${EXEC}: ${OBJS}
31 ${CPPC} ${OBJS} -o ${EXEC} -lcgicc
32
33 %.o:%.cpp
34 ${CPPC} ${CPPCOPT} $< -c
35
36 depend: ${CSRC} ${HDRS}
37 ${CPPC} ${CPPCDEP} ${CSRC} > depend
38
39 include depend
40
41 clean:
42 - rm ${OBJS} ${EXEC} core *.core depend