2 space=$(empty) $(empty)
4 ## Operating system specification:
5 # linux - Linux (1.3.37)
6 # amiga - Amiga (customized 40.62)
9 ## C compiler specification:
14 ## Windowing system specification:
15 # x11 - X Window System, Version 11(tm) (Release 6, Implementation: XFree 3.1.2)
16 # amiga - Amiga native windowing system (customized 40.62)
17 # svga - svgalib - low level gfx (1.2.8) - only for Linux, as far as I know
18 # none - Without any graphics support
29 ifeq "$(CC_NAME)" "gcc" # C compiler: GCC
30 CC_CFLAGS=-Wall -O6 -fomit-frame-pointer -finline-functions -fexpensive-optimizations #-ansi -pedantic
37 ifeq "$(CC_NAME)" "sasc" # C compiler: SAS/C
47 ifeq "$(OS_NAME)" "linux" # Operating system: Linux
48 OS_CFLAGS=$(DEFKWD)_BSD_SOURCE $(DEFKWD)HAVE_RINT
54 ifeq "$(OS_NAME)" "amiga" # Operating system: Amiga
63 ifeq "$(WS_NAME)" "x11" # Windowing system: X Window System, Version 11(tm)
64 WS_CFLAGS=$(DEFKWD)FOR_X11
65 WS_LDFLAGS=-L/usr/X11/lib -lX11 -lXext -lXpm
69 ifeq "$(WS_NAME)" "amiga" # Windowing system: Amiga native windowing system
70 WS_CFLAGS=$(DEFKWD)FOR_AMIGA
75 ifeq "$(WS_NAME)" "svga" # Windowing system: svgalib - low level gfx
76 WS_CFLAGS=$(DEFKWD)FOR_SVGA
81 ifeq "$(WS_NAME)" "none" # Windowing system: Without any graphics support
82 WS_CFLAGS=$(DEFKWD)FOR_NONE
89 CFLAGS=$(OS_CFLAGS) $(CC_CFLAGS) $(WS_CFLAGS)
90 LDFLAGS=$(OS_LDFLAGS) $(CC_LDFLAGS) $(WS_LDFLAGS)
91 WLLIB=wllib-$(WS_LIBSUFF).c
93 TARGETS=mop451 mop453 ## Examples-related
96 all: Makefile $(TARGETS)
99 -$(RM) $(TARGETS) *.o *.lnk *.npg gmk2mk
104 # Compatibility-related
105 #######################
107 $(CC) $(CFLAGS) $(LDFLAGS) $(LDTO) $@ $<
109 Makefile: GNUmakefile gmk2mk
110 gmk2mk <GNUmakefile >Makefile
114 mop451: mop451.o wllib.o
115 $(CC) $(LDFLAGS) $(LDTO) $@ $< wllib.o
117 mop451.o: mop451.c mop451.xpm dyna-add.c wllib.h
118 $(CC) $(CFLAGS) $(LDTOO) $@ $<
120 mop453: mop453.o wllib.o
121 $(CC) $(LDFLAGS) $(LDTO) $@ $< wllib.o
123 mop453.o: mop453.c mop453.xpm dyna-add.c wllib.h
124 $(CC) $(CFLAGS) $(LDTOO) $@ $<
126 wllib.o: $(WLLIB) wllib.h
127 $(CC) $(CFLAGS) $(LDTOO) $@ $<