CFLAGS += -O2 -Wall LDFLAGS += -lcurl -ljson-c TARGET = np SRC = $(wildcard *.c) OBJ = $(SRC:.c=.o) all: $(TARGET) $(TARGET): $(OBJ) clean: rm -f $(TARGET) $(OBJ) .PHONY: all clean