X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=511fb3159bab19e2600282a5320bebfc42c0cce5;hb=e208db9f11f66f2315ecd1254c0a08a1e525f59d;hp=eee3bac4f2203a9c2bd7bbff2d5691440608fdee;hpb=6cac6fc05528a4de065de5fc58ac51157b3e6c30;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index eee3bac4..511fb315 100644 --- a/src/Makefile +++ b/src/Makefile @@ -147,18 +147,24 @@ $(LIBGAME): .c.o: $(CC) $(PROFILING) $(CFLAGS) -c $*.c -clean: +clean-obj: $(MAKE) -C $(LIBDIR) clean $(RM) $(OBJS) $(RM) $(LIBGAME) + +clean-bin: $(RM) $(PROGNAME) $(RM) ../*.exe +clean: clean-obj clean-bin + #-----------------------------------------------------------------------------# # development only stuff # #-----------------------------------------------------------------------------# +dist-clean: clean-obj + depend: $(MAKE) -C $(LIBDIR) depend for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend