changes
[cdsspec-compiler.git] / test / Makefile
1 include ../common.mk
2
3 CPPFLAGS += -I.. -I../include
4
5 # Mac OSX options
6 ifeq ($(UNAME), Darwin)
7 CPPFLAGS += -D_XOPEN_SOURCE -DMAC
8 endif
9
10 SRCS = $(wildcard *.c)
11 CPSRCS = $(wildcard *.cc)
12 OBJS = $(patsubst %.c,%.o,$(SRCS)) $(patsubst %.cc,%.o,$(CPSRCS))
13
14 all: $(OBJS)
15
16 %.o: %.c
17         $(CC) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME)
18
19 %.o: %.cc
20         $(CXX) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME)
21
22 clean::
23         rm -f *.o