mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Fix checking of header timestamps.
This is implemented in such a way that a change in one of our headers won't cause recompilation of large C dependancies. It's a bit hacky, but it works.
This commit is contained in:
parent
d7a41d40ab
commit
73c67a814d
9
Makefile
9
Makefile
@ -89,6 +89,8 @@ CXXOBJ=$(CXXSRC:.cpp=.o)
|
|||||||
|
|
||||||
OBJ=$(COBJ) $(CXXOBJ)
|
OBJ=$(COBJ) $(CXXOBJ)
|
||||||
|
|
||||||
|
HDR=$(CHDR) $(CXXHDR)
|
||||||
|
|
||||||
all: $(SERVER)
|
all: $(SERVER)
|
||||||
|
|
||||||
windows: $(SERVER)
|
windows: $(SERVER)
|
||||||
@ -103,12 +105,15 @@ windows : SERVER=$(WIN_SERVER)
|
|||||||
|
|
||||||
.SUFFIX: .o .c .cpp .h .hpp
|
.SUFFIX: .o .c .cpp .h .hpp
|
||||||
|
|
||||||
.c.o: $(CHDR)
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
.cpp.o: $(CXXHDR)
|
.cpp.o:
|
||||||
$(CXX) -c $(CXXFLAGS) -o $@ $<
|
$(CXX) -c $(CXXFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
# header timestamps are a prerequisite for OF object files
|
||||||
|
$(CXXOBJ): $(CXXHDR)
|
||||||
|
|
||||||
$(SERVER): $(OBJ) $(CHDR) $(CXXHDR)
|
$(SERVER): $(OBJ) $(CHDR) $(CXXHDR)
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
$(CXX) $(OBJ) $(LDFLAGS) -o $(SERVER)
|
$(CXX) $(OBJ) $(LDFLAGS) -o $(SERVER)
|
||||||
|
Loading…
Reference in New Issue
Block a user