Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C_FILES := $(wildcard *.c)
- OBJ_FILES := $(addprefix obj/,$(notdir $(C_FILES:.c=.o)))
- LD_FLAGS := -lm
- C_FLAGS := -Wall -MMD -g
- #CPP_FLAGS := -Wall -MMD -g -fstack-protector-strong -fno-omit-frame-pointer -std=c++11
- LD_FLAGS += $(shell pkg-config --libs openssl)
- LD_FLAGS += $(shell pkg-config --libs libnetfilter_queue)
- main: $(OBJ_FILES)
- gcc -o $@ $^ $(LD_FLAGS)
- obj/%.o: %.c Makefile
- gcc $(C_FLAGS) -c -o $@ $<
- -include $(OBJFILES:.o=.d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement