diff options
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 $@ |