Commit 88292e387b1d10c69e9fe76a19e36fb6786c56e6
1 parent
ede9e833
Add clean target in testers Makefile
Showing
1 changed file
with
6 additions
and
2 deletions
| @@ -11,11 +11,11 @@ LIBS = $(TRLIBS) \ | @@ -11,11 +11,11 @@ LIBS = $(TRLIBS) \ | ||
| 11 | -lrt \ | 11 | -lrt \ |
| 12 | -luuid | 12 | -luuid |
| 13 | 13 | ||
| 14 | -PROHRAMS = testserver2 \ | 14 | +PROGRAMS = testserver2 \ |
| 15 | testtcp \ | 15 | testtcp \ |
| 16 | testudp | 16 | testudp |
| 17 | 17 | ||
| 18 | -all: $(PROHRAMS) | 18 | +all: $(PROGRAMS) |
| 19 | 19 | ||
| 20 | testserver2: testserver2.o test_handler.o | 20 | testserver2: testserver2.o test_handler.o |
| 21 | $(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $< test_handler.o | 21 | $(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $< test_handler.o |
| @@ -31,3 +31,7 @@ testudp.o: testclient.c | @@ -31,3 +31,7 @@ testudp.o: testclient.c | ||
| 31 | 31 | ||
| 32 | %.o: %.c | 32 | %.o: %.c |
| 33 | $(CC) $(CFLAGS) -std=c99 -c -o $@ $< | 33 | $(CC) $(CFLAGS) -std=c99 -c -o $@ $< |
| 34 | + | ||
| 35 | +.PHONY: clean | ||
| 36 | +clean: | ||
| 37 | + @rm -Rf *.o $(PROGRAMS) |
Please
register
or
login
to post a comment