-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
46 lines (36 loc) · 1.11 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# makefile for gulam
# 890111 kbad hacked it out. Note: some of these files may benefit from
# MWC optimization flagz, but I haven't bothered.
#
# Use these defines for MWC
#CFLAGS = -DMWC -VPEEP -NOVSUVAR -NOVSNREG
#LIBS = -lc
#CC = cc
#
#.c.o:
# cc $(CFLAGS) -c $*.c
#
# Use these defines for GCC
CROSS = m68k-atari-mint-
WARN = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-declaration -Wold-style-definition -Werror
CC = $(CROSS)gcc
CFLAGS = -O2 -fomit-frame-pointer -funsigned-char $(WARN)
LDFLAGS = -s
LIBS =
# gasmmwc.o removed, gasmgnu.o added
UEFILES = basic.o buffer.o display.o error.o file.o \
fio.o function.o gasmgnu.o kb.o line.o misc.o pmalloc.o random.o \
regexp.o region.o rsearch.o teb.o ue.o window.o word.o
GUFILES = cs.o do.o ex.o fop.o gcoatari.o \
gfsatari.o gioatari.o gmcatari.o hist.o \
lex.o ls.o main.o pregrep.o rehash.o tv.o \
util.o xmdm.o
OFILES = $(UEFILES) $(GUFILES)
all: gunew.prg
gunew.prg: $(OFILES)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
$(OFILES): ue.h gu.h keynames.h regexp.h sysdpend.h
gasmmwc.o: gasmmwc.s
as -o $@ $<
clean::
rm -f *.o *.prg