Révision 304 approxBasisSollya/Makefile
Makefile (revision 304) | ||
---|---|---|
6 | 6 |
INCS = approxbaso.h read-lines-from-file.h |
7 | 7 |
SOURCES = $(INCS) approxbaso.c readlines-from-file.c |
8 | 8 |
|
9 |
TEST_DRIVER = # CUnit test driver binary program |
|
10 | 9 |
TEST_DIR = test |
11 |
TEST_SOURCES = $(TEST_DIR)/$(TEST_DRIVER).c \ |
|
12 |
# Add the suites definition sources |
|
13 | 10 |
|
14 | 11 |
ALL_TARGETS = $(OBJS) |
15 | 12 |
|
... | ... | |
54 | 51 |
.PRECIOUS: $(OBJS) |
55 | 52 |
|
56 | 53 |
all: $(ALL_TARGETS) |
57 |
test: $(TEST_DRIVER) |
|
58 | 54 |
|
55 |
test: |
|
56 |
@$(MAKE) -C $(TEST_DIR) test |
|
57 |
|
|
59 | 58 |
% : %.o $(OBJS) |
60 | 59 |
$(CC) $(CFLAGS) -o $@ $< $(OBJS) $(LDLIB) |
61 | 60 |
|
62 | 61 |
%.o : %.c $(INCS) |
63 | 62 |
$(CC) $(CFLAGS) -c -o $@ $< |
64 | 63 |
|
65 |
$(TEST_DRIVER) : |
|
66 |
make -C test |
|
67 |
cp test/$(TEST_DRIVER) . |
|
68 | 64 |
# ------------------------------------------------------------------------- |
69 | 65 |
|
70 | 66 |
.PHONY: clean scratch |
71 | 67 |
|
72 | 68 |
clean: |
73 |
@rm -f $(ALL_TARGETS) $(TEST_DRIVER)
|
|
69 |
@rm -f $(ALL_TARGETS) |
|
74 | 70 |
@rm -f *.o a.out $(OBJS) |
75 | 71 |
@rm -f *~ *% #*# |
76 | 72 |
@make -C $(TEST_DIR) clean |
... | ... | |
79 | 75 |
rm -f $(SCRATCH_ALL) |
80 | 76 |
|
81 | 77 |
# Change the documentation configuration and path accordingly. |
82 |
documentation: pobyso.doxyconf $(SOURCES)
|
|
78 |
documentation: approxbaso.doxyconf $(SOURCES)
|
|
83 | 79 |
doxygen approxbaso.doxyconf |
Formats disponibles : Unified diff