equal
deleted
inserted
replaced
3 CFLAGS = -Wall -O2 -Iinclude $(EXTRA) |
3 CFLAGS = -Wall -O2 -Iinclude $(EXTRA) |
4 EXTRA = #-DNO_CRYPT |
4 EXTRA = #-DNO_CRYPT |
5 LDFLAGS = -L/usr/lib |
5 LDFLAGS = -L/usr/lib |
6 RM = rm -f |
6 RM = rm -f |
7 FIND = find |
7 FIND = find |
|
8 MAKE = make |
|
9 INDENT = indent |
|
10 ERASER = eraser |
8 |
11 |
9 ifeq ("$(PROFILER)", "linux") |
12 ifeq ("$(PROFILER)", "linux") |
10 PROF = -fprofile-arcs -ftest-coverage -pg |
13 PROF = -fprofile-arcs -ftest-coverage -pg |
11 endif |
14 endif |
12 |
15 |
349 endif |
352 endif |
350 $(RM) $(TARGET) |
353 $(RM) $(TARGET) |
351 |
354 |
352 beauty: |
355 beauty: |
353 ifdef FIND |
356 ifdef FIND |
354 $(FIND) . -name '*.[ch]' -exec indent {} \; |
357 $(FIND) . -name '*.[ch]' -exec $(INDENT) {} \; |
355 $(FIND) . -name '*.[ch]' -exec eraser {} \; |
358 $(FIND) . -name '*.[ch]' -exec $(ERASER) {} \; |
356 $(FIND) . -name '*.java' -exec eraser {} \; |
359 $(FIND) . -name '*.java' -exec $(ERASER) {} \; |
357 $(FIND) . -name 'Makefile*' -exec eraser {} \; |
360 $(FIND) . -name 'Makefile*' -exec $(ERASER) {} \; |
358 endif |
361 endif |
359 @make clean |
362 @$(MAKE) clean |