$NetBSD: patch-aa,v 1.1.1.1 1998/10/13 00:37:33 garbled Exp $ --- /dev/null Thu Sep 24 10:12:39 1998 +++ Makefile Thu Sep 24 10:34:08 1998 @@ -0,0 +1,49 @@ +#--------------------------------------------------------------------- +# +# The following assigns must be changed according to your system +# + +GCC=gcc +GPP=g++ + +XLIB=$(X11BASE)/lib +CPPFLAGS=-I$(X11BASE)/include -DCRAFT_DIR=\"$(PREFIX)/share/craft/\" + +# +#-------------------------------------------------------------------- + +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 color_trans.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) $(CPPFLAGS) $(CFLAGS) -c + +LFLAGS=-Wl,-R$(XLIB) -L$(XLIB) -lX11 -lm -lcompat + +all: craft + +craft: $(OBJ) + $(GPP) $(OBJ) $(CPPFLAGS) -o craft $(LFLAGS) + +%.o: %.cc + $(CMP) $* + +%.o: %.hc + $(CMP) $* + +$(OBJ): hcc/hcc + +install: craft + /usr/bin/install -s -c -o bin -g bin -m 0755 craft $(PREFIX)/bin + /usr/bin/install -d -o bin -g bin -m 0755 $(PREFIX)/share/craft + /usr/bin/install -d -o bin -g bin -m 0755 $(PREFIX)/share/doc/craft + /bin/cp -R hcraft $(PREFIX)/share/craft + /bin/cp -R buttons $(PREFIX)/share/craft + /bin/cp -R html/* $(PREFIX)/share/doc/craft + /usr/bin/install -c -o bin -g bin -m 0644 .windefaults.params $(PREFIX)/share/craft +