-
Notifications
You must be signed in to change notification settings - Fork 0
/
smakefile
executable file
·110 lines (80 loc) · 3 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
####################################################
# Makefile for FAME-FTPd - Written by Sascha Pfalz #
# #
# Some parts based on Term's Smakefile #
####################################################
.c.o:
@echo NOLINE "*nCompiling $<..."
@sc NOVERBOSE $(CFLAGS) $<
@echo NOLINE "done.*n"
####################
# All object parts #
####################
OBJS=support.o famesupport.o main.o MakeArray.o
############################
# Name of final Executable #
############################
PROGRAM = FAME-FTPd
###########################
# CPU Type to compile for #
###########################
CPU=68040
#################################################
# Define which will be shown inside Version tag #
#################################################
CPU_TYPE="68040"
###################################################
# Set OPTIMIZE=NOOPTIMIZE if you do not want this #
###################################################
OPTIMIZE=OPTIMIZE OPTIMIZERINLINELOCAL OPTIMIZERSCHEDULER OPTIMIZERTIME
################################################
# The compiler options to use are listed here: #
################################################
CCOPTS=MEMORYSIZE=HUGE IGNORE=315,306 INCLUDEDIR=NETINCLUDE: PARAMS=R NOSTKCHK STRINGMERGE NOCHECKABORT COMMENTNEST NOMULTIPLEINCLUDES UTILITYLIBRARY STRINGSECTION=CODE
##############################################
# GST File to use for improved compile speed #
##############################################
GSTFILE=FAME-FTPd.gst
#####################################
# Compiler settings, do not change! #
#####################################
CFLAGS = cpu=$(CPU) DEF=CPU_TYPE=$(CPU_TYPE) GST=$(GSTFILE) $(CCOPTS) $(OPTIMIZE)
AFLAGS = -d -u -dCPU_$(CPU) -dCPU='$(CPU)'
LFLAGS = quiet smallcode smalldata noicons nodebug STRIPDEBUG
################
# Default Rule #
################
all: start prg
#########################
# Print Welcome message #
#########################
cls:
@cls
start: cls
@echo "*nCreating $(PROGRAM) as $(CPU) Version"
@rx version.rexx
###########################
# Compile the whole stuff #
###########################
prg: $(OBJS)
@echo NOLINE "*nLinking $(PROGRAM)..."
@slink with <<
from LIB:c.o $(OBJS) to $(PROGRAM) LIB LIB:sc.lib LIB:amiga.lib NETLIB:netd.lib $(LFLAGS)
<
@echo NOLINE "done.*n*nSize of Program: "
@List $(PROGRAM) NOHEAD LFORMAT="%l Bytes"
@echo ""
################
# Dependencies #
################
support.o: support.c proto.h ftp.h struct_ex.h
famesupport.o: famesupport.c proto.h ftp.h struct_ex.h
MakeArray.o: MakeArray.c proto.h struct_ex.h
main.o: main.c proto.h support.o famesupport.o MakeArray.o ftp.h struct.h
###################################################################
# Clean up all Objectfiles and also remove the Program executable #
###################################################################
clean:
@-echo NOLINE "*nRemoving Object- and Programfiles..."
@-delete quiet $(OBJS) $(PROGRAM) >NIL:
@-echo "done.*n"