#CFLAGS= -Wall -pg -ansi $(shell sdl-config --cflags)
SDL_LIBS= $(shell sdl-config --libs)
-FT2_LIBS= $(shell freetype-config --libs)
MAPC_TARG= mapc
MAPC_EXEC = ./$(MAPC_TARG)
MAPC_DEPS= $(MAPC_OBJS:.o=.d)
BASE_LIBS= $(SDL_LIBS) -lSDL_image
-LIBS= $(X11_PATH) $(BASE_LIBS) -lSDL_ttf -lSDL_mixer $(FT2_LIBS) $(OGL_LIBS)
+LIBS= $(X11_PATH) $(BASE_LIBS) -lpng -lSDL_ttf -lSDL_mixer $(OGL_LIBS)
MESSAGEPART= /LC_MESSAGES/$(LOCALEDOM).mo
MESSAGES= $(LINGUAS:%=$(LOCALEDIR)/%$(MESSAGEPART))
#------------------------------------------------------------------------------
%.d : %.c
- $(CC) $(CFLAGS) -Ishare -MM -MF $@ $<
- sed -i 's+^[^:]*:+$*.o $@ :+' $@
+ $(CC) $(CFLAGS) -Ishare -MM -MF $@ -MT '$*.o $@' $<
%.o : %.c
$(CC) $(CFLAGS) -Ishare -o $@ -c $<
test : all
./neverball
+tools :
+ cd tools && $(MAKE)
+
#------------------------------------------------------------------------------
# PO update rules
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
.PHONY : all sols locales clean-src clean test \
- po-update-extract po-update-merge po-update
+ po-update-extract po-update-merge po-update \
+ tools
-include $(BALL_DEPS) $(PUTT_DEPS) $(MAPC_DEPS)