summaryrefslogtreecommitdiff
path: root/build/exe.mk
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2002-05-17 06:08:44 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2002-05-17 06:08:44 +0000
commitb7557fd93e119c68668088c9fed3155c780420ed (patch)
treebf10a53568b88fdc09ec4a201780a4d0918fa9e5 /build/exe.mk
parent5a804ca7930481d2bb636c85c7c6a0872a08a55c (diff)
downloadflac-b7557fd93e119c68668088c9fed3155c780420ed.tar.gz
add targets for building C++ code
Diffstat (limited to 'build/exe.mk')
-rw-r--r--build/exe.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/exe.mk b/build/exe.mk
index 77843323..d536a353 100644
--- a/build/exe.mk
+++ b/build/exe.mk
@@ -21,8 +21,10 @@
ifeq ($(DARWIN_BUILD),yes)
CC = cc
+CCC = c++
else
CC = gcc
+CCC = g++
endif
NASM = nasm
# LINKAGE can be forced to -static or -dynamic from invocation if desired, but it defaults to -static except on OSX
@@ -53,8 +55,12 @@ $(PROGRAM) : $(OBJS)
%.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 $@