blob: 6b269b985ca37f03f09b44878bded745e39f60b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
CPPFLAGS+= -DSYSTEM_POSIX -DSTDC_HEADERS -DHAVE_SYS_RESOURCE_H \
-DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H \
-DHAVE_FCNTL_H -DHAVE_UNISTD_H -DDOUBLEVEC_T
CXXFLAGS+= -Wall -Wextra
common_OBJS= common/blockmem.o \
common/bspfile.o \
common/cmdlib.o \
common/filelib.o \
common/files.o \
common/log.o \
common/mathlib.o \
common/messages.o \
common/resourcelock.o \
common/scriplib.o \
common/threads.o \
common/winding.o
hlbsp_OBJ= hlbsp/merge.o \
hlbsp/outside.o \
hlbsp/portals.o \
hlbsp/qbsp.o \
hlbsp/solidbsp.o \
hlbsp/surfaces.o \
hlbsp/tjunc.o \
hlbsp/writebsp.o
hlcsg_OBJS= hlcsg/autowad.o \
hlcsg/brush.o \
hlcsg/brushunion.o \
hlcsg/hullfile.o \
hlcsg/map.o \
hlcsg/netvis_in_vis.o \
hlcsg/properties.o \
hlcsg/qcsg.o \
hlcsg/textures.o \
hlcsg/wadcfg.o \
hlcsg/wadinclude.o \
hlcsg/wadpath.o
hlrad_OBJS= hlrad/lerp.o \
hlrad/lightmap.o \
hlrad/mathutil.o \
hlrad/nomatrix.o \
hlrad/qrad.o \
hlrad/qradutil.o \
hlrad/sparse.o \
hlrad/trace.o \
hlrad/transfers.o \
hlrad/transparency.o \
hlrad/vismatrix.o \
hlrad/vismatrixutil.o
hlvis_OBJS= hlvis/flow.o \
hlvis/vis.o \
hlvis/zones.o
ripent_OBJS= ripent/ripent.o
PROGS= hlbsp/hlbsp hlcsg/hlcsg hlrad/hlrad hlvis/hlvis ripent/ripent
.cpp.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< -Icommon -Itemplate
all: $(PROGS)
hlbsp/hlbsp: $(common_OBJS) $(hlbsp_OBJ)
hlcsg/hlcsg: $(common_OBJS) $(hlcsg_OBJS)
hlrad/hlrad: $(common_OBJS) $(hlrad_OBJS)
hlvis/hlvis: $(common_OBJS) $(hlvis_OBJS)
ripent/ripent: $(common_OBJS) $(ripent_OBJS)
$(PROGS):
$(CXX) $(LDFLAGS) -o $@ $> -lpthread
install: $(PROGS)
$(BSD_INSTALL_PROGRAM) $> $(DESTDIR)$(PREFIX)/bin
.PHONY: all install
|