From b7557fd93e119c68668088c9fed3155c780420ed Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 17 May 2002 06:08:44 +0000 Subject: add targets for building C++ code --- build/lib.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build/lib.mk') diff --git a/build/lib.mk b/build/lib.mk index 11095fca..90a0cbc2 100644 --- a/build/lib.mk +++ b/build/lib.mk @@ -21,8 +21,10 @@ ifeq ($(DARWIN_BUILD),yes) CC = cc +CCC = c++ else CC = gcc +CCC = g++ endif NASM = nasm LINK = ar cru @@ -65,8 +67,12 @@ endif %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ +%.o : %.cc + $(CCC) $(CFLAGS) -c $< -o $@ %.i : %.c $(CC) $(CFLAGS) -E $< -o $@ +%.i : %.cc + $(CCC) $(CFLAGS) -E $< -o $@ %.o : %.nasm $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@ -- cgit v1.2.1