blob: 696478cf55dc0776b19a3cd51f1aa6311035d313 (
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
34
35
36
37
38
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
OBJ =\
apsh.o\
preparser.o\
tokeniser.o\
parser.o
HDR =\
common.h\
config.h
all: apsh
$(OBJ): $(@:.o=.c) $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
apsh: $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: apsh
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
cp -- apsh "$(DESTDIR)$(PREFIX)/bin/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/apsh"
clean:
-rm -f -- *.o *.su apsh
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|