13 lines
252 B
Makefile
13 lines
252 B
Makefile
CFLAGS += -MMD -Wall
|
|
CXXFLAGS += -MMD -Wall
|
|
|
|
# Use gmake -n to see the command-lines gmake would run.
|
|
|
|
%.o : %.c
|
|
@echo Compiling $<
|
|
@$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
|
|
|
|
%.o : %.cc
|
|
@echo Compiling $<
|
|
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
|