cpp.mk 440 Bytes
Newer Older
Christophe Rhodes's avatar
Christophe Rhodes committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LDLIBS += -lcppunit -lstdc++
CXXFLAGS += -std=c++11

ifeq ($(OS),Windows_NT)
  MYOS := Windows
else
  MYOS := $(shell uname -s)
endif

ifeq ($(MYOS),Darwin)
CPPUNITDIR = /Users/Shared/CppUnit
CPPFLAGS += -I$(CPPUNITDIR)/include -I/usr/local/include
LDFLAGS += -L$(CPPUNITDIR)/lib -L/usr/local/lib
endif

CPPFLAGS += -I../../00/cpp
17
18
19
20
21

OBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
HPPS = $(wildcard *.hpp)

$(OBJECTS): %.o : %.cpp $(HPPS)