summary refs log tree commit diff
path: root/src/Makefile
blob: ec7b6534614b64f2db602d67e608784b0557250a (plain) (blame)
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
DESTDIR=

CC=./support/compile
LD=./support/load

CC=gcc

CFLAGS=-Isupport

all: runit runit-init svwaitup svwaitdown

runit: djb-publicdomain runit.o
	$(LD) runit support/unix.a support/byte.a

runit-init: djb-publicdomain runit-init.o
	$(LD) runit-init support/unix.a support/byte.a

svwaitup: djb-publicdomain svwaitup.o
	$(LD) svwaitup support/unix.a support/byte.a support/time.a

svwaitdown: djb-publicdomain svwaitdown.o
	$(LD) svwaitdown support/unix.a support/byte.a support/time.a

djb-publicdomain:
	( cd support ; make )

clean:
	find . -name \*~ -exec rm -f {} \;
	find . -name .??*~ -exec rm -f {} \;
	find . -name \#?* -exec rm -f {} \;
	if test -h support; \
		then ( cd support ; $(MAKE) clean ); fi
	rm -f `cat TARGETS`