projects
/
trackerpp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
change makefile and ignore .o file
[trackerpp.git]
/
Makefile
1
CC := g++
2
CFLAGS := -Wall -std=c++11
3
CPPLAGS += -Wall -std=c++11
4
CXXLAGS += -Wall -std=c++11
5
6
SRC := $(wildcard src/*.cpp *.cpp)
7
OBJS := $(patsubst %.cpp,%.o, $(SRC))
8
9
.PHONY: all clean
10
all:$(OBJS)
11
$(CC) $(CFLAGS) -o main $(OBJS) -llog4cpp
12
13
$(OBJS):%.o:%.cpp
14
$(CC) -c $(CFLAGS) $< -o $@
15
16
17
clean:
18
rm -rf $(OBJS) main