mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
move .o files into an obj directory
This commit is contained in:
parent
ccc46a819c
commit
e8616735b6
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,7 @@ SRC = \
|
|||
GITINFO = gitversion.txt
|
||||
HASH=$(shell git describe)
|
||||
|
||||
OBJ = $(patsubst %.cpp,%.o,$(SRC))
|
||||
OBJ = $(patsubst %.cpp,obj/%.o,$(SRC))
|
||||
#LDFLAGS += -pthread -g -lmcheck $(STATIC)
|
||||
LDFLAGS += -pthread -g $(STATIC)
|
||||
LDFLAGS += -L$(shell pg_config --libdir)
|
||||
|
@ -68,6 +68,10 @@ memdebug all: xwrelay rq
|
|||
xwrelay: $(OBJ)
|
||||
$(CXX) $(CPPFLAGS) -o $@ $^ -lpq $(LDFLAGS)
|
||||
|
||||
obj/%.o: %.cpp
|
||||
@mkdir -p obj
|
||||
$(CXX) -c $(CPPFLAGS) -o $@ $^
|
||||
|
||||
rq: rq.c
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Add table
Reference in a new issue