diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-05-17 06:08:44 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-05-17 06:08:44 +0000 |
commit | b7557fd93e119c68668088c9fed3155c780420ed (patch) | |
tree | bf10a53568b88fdc09ec4a201780a4d0918fa9e5 /build/lib.mk | |
parent | 5a804ca7930481d2bb636c85c7c6a0872a08a55c (diff) | |
download | flac-b7557fd93e119c68668088c9fed3155c780420ed.tar.gz |
add targets for building C++ code
Diffstat (limited to 'build/lib.mk')
-rw-r--r-- | build/lib.mk | 6 |
1 files changed, 6 insertions, 0 deletions
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 $@ |