| Revision 5633 (by eglebbk, 2005/12/31 16:25:49) |
Added temporary demo game build system.
Running `make depend; make' should correctly build the demo game for DOS, Windows and *nix (possibly including MacOS X), but only tested under Linux.
Dependency generation is rather broken and it doesn't work for non-gcc compilers at the moment.
|
.PHONY: game all clean distclean veryclean compress depend
EXEF = $(EXEPREFIX)$(BASENAME)$(EXESUFFIX)
all: game
game: dirs $(EXEF)
dirs: $(OBJDIR) $(LIBDIR) $(EXEDIR)
$(OBJDIR):
mkdir -p $@
$(LIBDIR):
mkdir -p $@
$(EXEDIR):
mkdir -p $@
clean:
rm -f $(OBJDIR)/*.o $(EXEF)
distclean:
rm -f obj/unix/*.o obj/djgpp/*.o obj/mingw/*.o $(EXEF) *.exe
veryclean: distclean
rm -f makefile.dep
depend:
@echo "Generating dependencies..."
@echo -e $(DEPRULE) > makefile.dep
@exit
makefile.dep:
$(EXEF): $(OBJS)
@echo $(OBJS)
$(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS)