The dependency files are now removed by clean.
Also fix bad package name. It is just a default though: normally
SDL_PKGS comes from the top Makefile.
# For GNU Make.
-SDL_PKGS ?= libpng libjpeg libsdl SDL_mixer freetype2 zlib
+SDL_PKGS ?= libpng libjpeg sdl SDL_mixer freetype2 zlib
CFLAGS += `pkg-config $(SDL_PKGS) --cflags`
ranlib $@
clean:
- -rm -f $(TARGET) $(OBJECTS)
-
-distclean: clean
- -rm -f $(DEPS)
+ -rm -f $(TARGET) $(OBJECTS) $(DEPS)
%.d: %.c
gcc -MM $(CFLAGS) $< > $@