aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 16394bb1f5d09e3309de83f5699c95156b9d6d63 (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
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

OBJ =\
	apsh.o

HDR =\
	config.h

all: apsh
$(OBJ): $(@:.o=.c) $(HDR)

.c.o:
	$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)

apsh: $(OBJ)
	$(CC) -o $@ $(OBJ) $(LDFLAGS)

clean:
	-rm -f -- *.o *.su apsh

.SUFFIXES:
.SUFFIXES: .o .c

.PHONY: all clean