CC = g++ CCFLAGS = -Wall LDFLAGS = `sdl-config --cflags --libs` -lSDL_image RM = rm -f MAKE = make INCLUDE = -Iinclude/ext -Iinclude/contrib -Iinclude/core -Iprj/ SRC_C = $(wildcard src/core/*.c src/contrib/*.c src/ext/*.c prj/**/src/*.c) SRC_CC = $(wildcard src/core/*.cpp src/contrib/*.cpp src/ext/*.cpp prj/**/src/*.cpp) OBJ = $(SRC_C:.c=.o) $(SRC_CC:.cpp=.o) TARGET = roborobo .IGNORE: #.SILENT: all: #clear # $(MAKE) distclean $(MAKE) $(TARGET) $(TARGET): $(OBJ) $(CC) $(LDFLAGS) -o $@ $^ # $(MAKE) clean %.o: %.cpp $(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE) %.o: %.c $(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE) clean: $(RM) $(OBJ) distclean: $(MAKE) clean $(RM) $(TARGET)