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

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

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`