ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/CGIRenegadeMapSelector/GNUmakefile
Revision: 368
Committed: 2008-08-23T02:44:00-07:00 (14 years, 3 months ago) by douglas
File size: 597 byte(s)
Log Message:
Rearranged everything else.

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 CXX = g++
17 else
18 CXX = linux-g++31
19 endif
20 endif
21 CXXFLAGS ?=
22 CXXDEP ?= -MM
23
24 all: ${EXEC}
25
26 ${EXEC}: ${OBJS}
27 ${CXX} ${OBJS} -o ${EXEC} -lcgicc
28
29 %.o:%.cpp
30 ${CXX} ${CXXFLAGS} $< -c
31
32 depend: ${CSRC} ${HDRS}
33 ${CXX} ${CXXDEP} ${CSRC} > depend
34
35 include depend
36
37 clean:
38 - rm ${OBJS} ${EXEC} core *.core depend