From 0217e321ae9bb43b3e629fdb400d6f1c41fb75f0 Mon Sep 17 00:00:00 2001 From: Brian Demsky Date: Wed, 19 Sep 2012 17:38:39 -0700 Subject: [PATCH] changes --- test/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index a0b6d6e..8789324 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,14 +3,21 @@ include ../common.mk CPPFLAGS += -I.. -I../include # Mac OSX options +ifeq ($(UNAME), Darwin) +CPPFLAGS += -D_XOPEN_SOURCE -DMAC +endif SRCS = $(wildcard *.c) -OBJS = $(patsubst %.c,%.o,$(SRCS)) +CPSRCS = $(wildcard *.cc) +OBJS = $(patsubst %.c,%.o,$(SRCS)) $(patsubst %.cc,%.o,$(CPSRCS)) all: $(OBJS) %.o: %.c $(CC) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME) +%.o: %.cc + $(CXX) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME) + clean:: rm -f *.o -- 2.34.1