Files ? craft.readme this one craft_l35.tar.Z linux binaries craftcc35.tar.Z sources craftdoc.tar.Z rules, documentation How to compile ? You need the following things to compile craft : - The file craftcc35.tar.Z - The gnu g++ and gcc - A shell-script interpreter - The tar command - And Xlib Now you can start to do the following things. - place craftcc35.tar.Z in a new directory (e.g. craft) and "untar" it. - edit "install" and change paths for libs and call of gnu stuff (only a few lines) - execute "install" (on SUNOS/LINUX) or "install_solaris" If everything is correct it will take a while to compile craft. If this process is finished, you will have an executable craft in the directory afterwards. Now you can call it. Craft needs a proper directory-structure which contains the various resource files used by craft. Its structure looks like : - craft - .windefaults - \buttons - \hcraft This structure is automatically produced during the unpacking of the source code files. You should compile in the top directory of the above directory tree. A Makefile The distribution includes a special "install" procedure, therefore there is no explicit makefile needed. If you want one anyway, you can fetch one of the follwoing
- from "Myshkin the Idiot" >>>>>> # The following assigns must be changed according to your system # GCC = gcc GPP = g++ XLIB = /usr/X11R6/lib # #-------------------------------------------------------------------- #CFLAGS = -O2 -fexpensive-optimizations -finline-functions CFLAGS = HCC = hcc/hcc CMP = $(HCC) -compiler $(GCC) $(CFLAGS) -c LFLAGS = -L$(XLIB) -lX11 -lm OBJS = xtimer.o option_menu.o setupedit.o robot.o land.o ship.o building.o \ dir.o object_handler.o pic.o player.o field.o ilfield.o xbm.o \ cmap_edit.o cmap.o ppm.o compress.o table.o xmath.o io.o cry.o win.o \ dial.o multi_dial.o menu.o xsystem.o xfile.o ppm_handler.o errorhandling.o \ paramreader.o pattern_match.o objects.o xstring.o id_handler.o masks.o \ buttons.o lru.o scroller.o selector.o cmap_selector.o getline.o \ file_selector.o history.o craft.o all: craft craft: $(OBJS) $(GPP) $(OBJS) $(LFLAGS) -o craft .PHONY: clean really-clean all clean: -rm *.o really-clean: clean -rm *.cc *.err hcc/hcc: $(GCC) -o hcc/hcc hcc/hcc.cc $(OBJS): %.o: hcc/hcc %.hc $(CMP) $* <<<<<<< - from "Warwick Allison" >>>> #--------------------------------------------------------------------- # # The following assigns must be changed according to your system # GCC=gcc GPP=g++ XLIB=/usr/X11/lib # #-------------------------------------------------------------------- OBJ= xtimer.o option_menu.o setupedit.o robot.o land.o ship.o building.o dir.o object_handler.o pic.o player.o field.o ilfield.o xbm.o cmap_edit.o cmap.o ppm.o compress.o table.o xmath.o io.o cry.o win.o dial.o multi_dial.o menu.o xsystem.o xfile.o ppm_handler.o errorhandling.o paramreader.o pattern_match.o objects.o xstring.o id_handler.o masks.o buttons.o lru.o scroller.o selector.o cmap_selector.o getline.o file_selector.o history.o craft.o CFLAGS=-O2 # -fexpensive-optimizations -finline-functions HCC=hcc/hcc CMP=$(HCC) -compiler $(GCC) $(CFLAGS) -c LFLAGS=-L$(XLIB) -lX11 -lm craft: $(OBJ) $(GPP) $(OBJ) -o craft $(LFLAGS) %.o: %.hc $(CMP) $* $(OBJ): hcc/hcc hcc/hcc: hcc/hcc.cc $(GCC) -o hcc/hcc hcc/hcc.cc <<<< I hope that it will work (not tested, no guaranty for anything). As far as i understand the story, "install" must be executed at least once before you can use one of it, because "install" creates some preprocessors (hcc) needed by this makefile. Finally This source code is free, everybody may do everything with it, if it is not used commercially. I guarantee absolutely nothing, everything is at your own risk and I explicitly warn you not to compile or play the game :-). By the way if there are a few guys who are interested in further development of the game, mail me. I would be interested to hear your ideas and tips. mail to "uwe.beyer@gmd.de"