blob: adf04618e17134764cc9456452bad5cf886a2441 (
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
|
# 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
# Linker/loader
LD=gcc -g -O
# Libraries, etc.
LIBS=
# 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)
.c.o:
$(CC) $<
test:
$(TEST)
clean:
$(RM) *.o
# end of Makefile
|