summaryrefslogtreecommitdiff
path: root/dlperl/Makefile
blob: 64cfc76f06ecd85a19b4b886a990fa8125a0613a (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

# perl
# - location of uperl.o and include files
PERL = ../perl-lib
# - libraries required by perl - from config.sh
PERL_LIBS = -ldbm -lm -lposix

UPERL	= $(PERL)/uperl4.035.o
UPERL	= ../sybperl/uperl2.o

DP_C	= \
	dlperl.c \
	usersub.c

DP_H	=


CC	= gcc-2.2.2
CPPFLAGS= -I$(PERL)
#CFLAGS	= -g

ALL	= \
	dlperl


all: $(ALL) tags

dlperl: $(UPERL) $(DP_C:.c=.o)
	$(LINK.c) -o dlperl $(UPERL) $(DP_C:.c=.o) \
		$(PERL_LIBS) \
		-ldl -lc.1.6
	ld-rules -clobber dlperl

dlperl.s: dlperl.c
	$(COMPILE.c) -S $(OUTPUT_OPTION) dlperl.c

tags:	$(DP_C) $(DP_H)
	ctags $(DP_C) $(DP_H)

lint:
	$(LINT.c) $(DP_C) $(LINT_LN)

clean:
	rm -f core *.o

clobber:	clean
	rm -f $(ALL) tags

install:

.KEEP_STATE: