You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
395 B
Makefile
29 lines
395 B
Makefile
EXEC_FILE=main
|
|
TARGETS=$(EXEC_FILE).o message.o user.o message_helpers.o file_helpers.o
|
|
|
|
|
|
|
|
all: $(EXEC_FILE)
|
|
|
|
|
|
$(EXEC_FILE): $(TARGETS)
|
|
gcc -o $(EXEC_FILE) $^ -leasysock
|
|
|
|
|
|
$(EXEC_FILE).o: $(EXEC_FILE).c
|
|
message.o: message.c
|
|
user.o: user.c
|
|
message_helpers.o: message_helpers.c
|
|
file_helpers.o: file_helpers.c
|
|
|
|
$(TARGETS):
|
|
gcc -c -o $@ $^
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm $(TARGETS)
|
|
rm $(EXEC_FILE)
|