-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSMakefile
44 lines (33 loc) · 919 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
35
36
37
38
39
40
41
42
43
44
# SAS/C SMakefile for SciCalc
# AmigaOS 3.x version
CC = sc
CFLAGS = OPTIMIZE OPTINLINE OPTDEPCHK NOSTACKCHECK DEFINE=DEBUG=0
LDFLAGS = LIBRARY LIB:sc.lib LIB:amiga.lib STRIPDEBUG
# Uncomment for debugging
# CFLAGS += DEBUG=1 SYM=sc:sym V
# Target name
TARGET = SciCalc
# Source files
SRC = SciCalc.c
OBJ = SciCalc.o
# Libraries needed
LIBS = LIB:scm.lib LIB:mathieeedp.lib
# Main target
$(TARGET) : $(OBJ)
slink WITH <<
TO $@
FROM LIB:c.o $(OBJ)
LIB $(LIBS) $(LDFLAGS)
<
# Object file dependencies
$(OBJ) : $(SRC) scicalc_rev.h
$(CC) $(CFLAGS) $*
# Additional dependencies
INCLUDES = INCLUDE:exec/exec.h INCLUDE:intuition/intuition.h \
INCLUDE:libraries/gadtools.h INCLUDE:libraries/commodities.h
clean :
delete $(OBJ) $(TARGET) QUIET
# File existence checks
.exists $(SRC) : .ALWAYS
exists $(SRC) || fail "Source file $(SRC) missing!"
.ALWAYS :