Commit 5601bcad authored by Josh Coalson's avatar Josh Coalson
Browse files

add rules for .cpp files

parent 6afed9fc
......@@ -57,10 +57,14 @@ $(PROGRAM) : $(OBJS)
$(CC) $(CFLAGS) -c $< -o $@
%.o : %.cc
$(CCC) $(CFLAGS) -c $< -o $@
%.o : %.cpp
$(CCC) $(CFLAGS) -c $< -o $@
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.i : %.cc
$(CCC) $(CFLAGS) -E $< -o $@
%.i : %.cpp
$(CCC) $(CFLAGS) -E $< -o $@
%.o : %.nasm
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
......@@ -71,4 +75,4 @@ clean :
.PHONY : depend
depend:
makedepend -fMakefile.lite -- $(CFLAGS) $(INCLUDES) -- *.c *.cc
makedepend -fMakefile.lite -- $(CFLAGS) $(INCLUDES) -- *.c *.cc *.cpp
......@@ -70,10 +70,14 @@ endif
$(CC) $(CFLAGS) -c $< -o $@
%.o : %.cc
$(CCC) $(CFLAGS) -c $< -o $@
%.o : %.cpp
$(CCC) $(CFLAGS) -c $< -o $@
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.i : %.cc
$(CCC) $(CFLAGS) -E $< -o $@
%.i : %.cpp
$(CCC) $(CFLAGS) -E $< -o $@
%.o : %.nasm
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
......@@ -84,4 +88,4 @@ clean :
.PHONY : depend
depend:
makedepend -fMakefile.lite -- $(CFLAGS) $(INCLUDES) -- *.c *.cc
makedepend -fMakefile.lite -- $(CFLAGS) $(INCLUDES) -- *.c *.cc *.cpp
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment