-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 795 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 795 Bytes
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
include config.mk
# TODO figure out compiling a .so/.a lib so it can be included easier
CFLAGS += -Wall -Wextra
ARFLAGS += -oU
#clparser : parseargs.o printargs.o map.o
clparser : printargs.o libparseargs.a
(%) : % ;
%.a :
$(AR) $(ARFLAGS) $@ $?
libparseargs.a: libparseargs.a(parseargs.o map.o)
#libparseargs.so: parseargs.o map.o
map.o: map.h
parseargs.o: parseargs.h map.h
printargs.o: printargs.h parseargs.h map.h
testmap: map.o
PHONY : clean install
clean :
rm -f ${OBJ} clparser *.o *.a *.so
install : clparser
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f clparser ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/clparser
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f clparser.1 ${DESTDIR}${MANPREFIX}/man1/clparser.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/clparser.1