Added 'clean' target

master
Aadhavan Srinivasan 2 years ago
parent ae6e7a5b2f
commit e664c1526d

@ -1,10 +1,14 @@
CC=gcc
CLAGS=
CFLAGS=
EXEC_FILE=proxy
$(EXEC_FILE): main.o easysock.o
$(CC) main.o easysock.o -o $(EXEC_FILE)
allwarn: main.c easysock.c
$(CC) -Wall main.c easysock.c -o $(EXEC_FILE)
delOutput: $(EXEC_FILE)
$(CC) $(CFLAGS) main.o easysock.o -o $(EXEC_FILE)
allwarn: CFLAGS+=-Wall
allwarn: $(EXEC_FILE)
clean: $(EXEC_FILE) main.o easysock.o
rm ./$(EXEC_FILE)
clean: delOutput $(EXEC_FILE)
rm ./main.o
rm ./easysock.o

Loading…
Cancel
Save