$NetBSD: patch-aa,v 1.6 1998/11/24 05:23:23 mycroft Exp $ --- Makeflags.orig Mon Jul 14 20:32:13 1997 +++ Makeflags Mon Aug 3 00:50:27 1998 @@ -1,12 +1,42 @@ +# This file contains the template for Makeflags -# Some sensible defaults -BINDIR = /usr/local/bin -LIBDIR = /usr/local/lib/Maelstrom +SYSTEM = +FEATURES = -DAUDIO_16BIT -DASYNCHRONOUS_IO -DUSE_POSIX_SIGNALS -INSTALL = install +LOGIC = netlogic +XPMINCLUDE = -I$(X11BASE)/include +XPMLINKDIR = -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib + +BINDIR = $(PREFIX)/bin +LIBDIR = $(PREFIX)/share/maelstrom DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \ "Maelstrom Sounds" "Maelstrom Sprites" -all: config +OBJS = main.o framebuf.o v_framebuf.o x11_framebuf.o vga_framebuf.o \ + dga_framebuf.o fontserv.o sound.o Mac_Resource.o imagedump.o \ + init.o $(LOGIC)/$(LOGIC).o \ + controls.o scores.o dialog.o fastrand.o netscore.o checksum.o \ + Utils.o shared.o myerror.o +SOUNDOBJS = Maelstrom_sound.o Mac_Resource.o soundres.o mixer.o shared.o myerror.o + +#CXX = c++ +OPTIMIZE = -O2 +X11INCLUDE = -I$(X11BASE)/include +INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE) +CFLAGS = $(OPTIMIZE) $(INCLUDES) $(FEATURES) \ + -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\" +EXTRALIBS = +X11LINKDIR = -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib +X11LIBS = -lX11 -lXext -lXpm +CSUMLIB = +LIBS = $(EXTRALIBS) $(XPMLINKDIR) $(X11LINKDIR) $(X11LIBS) $(CSUMLIB) +SOUNDLIBS = -lossaudio + +INSTALL = /usr/bin/install + +all: $(MAELSTROM) netplayd/netplayd + +netplayd: + cd netplayd && make