SAMEDIR = "/usr/local/games/sxsame" INSTDIR = /usr/local/bin XINCDIR = /usr/X11R6/include XLIBDIR = /usr/X11R6/lib XPMLIB = -lXpm LOCAL_LIBRARIES = -L$(XLIBDIR) $(XPMLIB) -lX11 SRCS = sxsame.c defdata.c hiscore.c inifile.c loaddata.c loadbmp.c OBJS = sxsame.o defdata.o hiscore.o inifile.o loaddata.o loadbmp.o DEFINES = -I$(XINCDIR) -DSAME_DIR=\"$(SAMEDIR)\" #CDEBUGFLAGS = -g -Wall sxsame: $(OBJS) cc -o sxsame $(OBJS) $(LOCAL_LIBRARIES) sxsame.o: sxsame.c config.h sxsame.h hiscore.h $(CC) -c $(DEFINES) sxsame.c hiscore.o: hiscore.c config.h hiscore.h sxsame.h $(CC) -c $(DEFINES) hiscore.c defdata.o: defdata.c defdata.h sxsame.h $(CC) -c $(DEFINES) defdata.c loaddata.o: loaddata.c sxsame.h $(CC) -c $(DEFINES) loaddata.c loadbmp.o: loadbmp.c sxsame.h $(CC) -c $(DEFINES) loadbmp.c inifile.o: inifile.c sxsame.h $(CC) -c $(DEFINES) inifile.c install: install -c -s sxsame $(INSTDIR) install.dir: mkdir $(SAMEDIR) chmod 777 $(SAMEDIR) /bin/cp -pr contrib/?* $(SAMEDIR) clean: rm -f sxsame *.o *.bak *.core