blob: adaff3ccbb9b6e9c8342b0faf33d9d30b8a3919c (
plain)
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
|
# ABC Anthony B. Coates, makefile for FunnelWeb
.SUFFIXES: .c .o .a
# Set the C compiler to be CC or GCC as appropriate
#CC=cc
#CC=gcc -g -O -c -Wall
CC=c89 -O2 -w1 -c
# Linker/loader
#LD=gcc -g -O
LD=c89 -O2 -w1
# Libraries, etc.
#LIBS=
LIBS=-call_shared
# Make
MAKE=make
# Remove/delete
RM=\rm
# List directory
LS=ls
# Directory separator
DSP=/
# FunnelWeb executable file name
FWX=fw
# Command script for running tests
TEST=cd ../scripts ; ../fwACsrc/fw +xmaster
# The full list of FunnelWeb C source files
SRC=\
analyse.c as.c clock.c command.c data.c \
dump.c help.c help_gnu.c list.c lister.c \
machin.c main.c mapper.c fwmem.c misc.c \
option.c parser.c scanner.c section.c table.c \
tangle.c texhead.c weave.c writfile.c htmlhead.c
# The full list of FunnelWeb object files
OBJ=$(SRC:.c=.o)
# The list of FunnelWeb object files/libraries
OBJLIST=$(OBJ)
all: $(FWX) test
$(FWX): $(OBJLIST)
$(LD) -o $(FWX) $(OBJLIST) $(LIBS)
strip $(FWX)
.c.o:
$(CC) $<
test:
$(TEST)
clean:
$(RM) *.o
# end of Makefile
|