error in Makefile
Hi everyone
Iam doing something wrong with my Makefile. I have 2 executables server and client, 1 header network.h and network.c. When i write $make all it doesn't find network.c the but it works when i write $ gcc -o server server.c network.c -lpthread. What are i doing wrong in TARGETS ??:( HEADER can i deleted ?? Code:
CFLAGS = -Wall -g |
What is the exact error message you're getting?
|
Code:
all: $(TARGETS) && is a shell operator, so the last line echo's "Server", then tries to execute a command called Client, you should write Code:
@echo "Server && Client OK" |
All times are GMT -5. The time now is 10:37 PM. |