Add .PHONY target for all and clean

This commit is contained in:
Tobias Eidelpes 2018-05-08 18:22:49 +02:00
parent c2c2e8581d
commit b41bdbdddd

View File

@ -7,6 +7,8 @@
CC = gcc CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
.PHONY: all clean
all: websh all: websh
websh: websh.o websh: websh.o
@ -15,5 +17,5 @@ websh: websh.o
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) $^ $(CC) $(CFLAGS) $^
.PHONY clean: clean:
rm -f websh.o websh rm -f websh.o websh