-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
33 lines (25 loc) · 1.41 KB
/
Makefile
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
# This Makefile is the output of a template Makefile that was
# processed by the m4 macro preprocessor. It is not intended
# to be human readable.
CC=cc
PREFIX=/usr/local
CFLAGS=-ansi -Wall -Wextra -Wshadow -Wdouble-promotion -fpic -Wno-unused-variable -Wno-unused-function
TESTS=tests/append.out tests/find.out tests/init.out tests/insert.out tests/pop.out tests/remove.out tests/speed_test1.out tests/speed_test2.out tests/speed_test3.out tests/stack_append.out tests/stack_find.out tests/stack_init.out tests/stack_insert.out tests/stack_pop.out tests/stack_remove.out tests/stress_test.out
DOCS=./doc/carray.cware ./doc/carray_append.cware ./doc/carray_find.cware ./doc/carray_free.cware ./doc/carray_init.cware ./doc/carray_init_stack.cware ./doc/carray_insert.cware ./doc/carray_is_empty.cware ./doc/carray_length.cware ./doc/carray_pop.cware ./doc/carray_remove.cware
MANNAMES=carray.cware carray_append.cware carray_find.cware carray_free.cware carray_init.cware carray_init_stack.cware carray_insert.cware carray_is_empty.cware carray_length.cware carray_pop.cware carray_remove.cware
DEBUGGER=
.PHONY: all clean check install
.SUFFIXES: .c .out
all: $(TESTS) $(DOCS)
clean:
rm -f $(TESTS)
check:
./scripts/check.sh $(DEBUGGER)
install:
cp $(DOCS) $(PREFIX)/share/man/mancware
uninstall:
for manual in $(MANNAMES); do \
rm -f $(PREFIX)/share/man/mancware/$$manual; \
done
.c.out:
$(CC) $< $(OBJS) $(CFLAGS) -o $@