-
Notifications
You must be signed in to change notification settings - Fork 3
/
smakefile
37 lines (25 loc) · 949 Bytes
/
smakefile
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
# app names
EXEFILES = AmiWeatherForecasts AmiWFPrefs
LINKER = slink
CC = sc
LIBS = lib:sc.lib lib:amiga.lib lib:reaction.lib
MYLIBS = lib:httpget.lib lib:weather.lib lib:funcs.lib lib:announce.lib
STARTUP = lib:c.o
# linker flags
LFLAGS = smallcode smalldata nodebug noicons stripdebug
# compiler flags
CFLAGS = structureequivalence nostackcheck optimize IGNORE=73 IGNORE=225 IGNORE=51 IGNORE=100 IGNORE=304
SRCDIR = src/
OBJFILES = $(SRCDIR)main.o $(SRCDIR)common.o
PREFOBJFILES = $(SRCDIR)preferences.o $(SRCDIR)common.o
all: $(EXEFILES)
AmiWeatherForecasts: $(OBJFILES)
$(LINKER) FROM $(STARTUP) $(OBJFILES) LIB $(LIBS) $(MYLIBS) TO $@ $(LFLAGS)
AmiWFPrefs: $(PREFOBJFILES)
$(LINKER) FROM $(STARTUP) $(PREFOBJFILES) LIB $(LIBS) $(MYLIBS) TO $@ $(LFLAGS)
.c.o:
$(CC) $(CFLAGS) $*.c INCLUDEDIR=netinclude:
clean:
@Delete $(EXEFILES) $(OBJFILES) $(PREFOBJFILES) quiet
cleanOBJ:
@Delete $(OBJFILES) $(PREFOBJFILES) quiet