Removed useless lines, added flags in seperate part

This commit is contained in:
n07070 2020-04-14 16:59:49 +02:00
parent f90caceeb4
commit 53528ff666
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
TARGET ?= dazibao
SRC_DIRS ?= ./src/*
CC := gcc -Wall -lssl -lcrypto
SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
CC := gcc
CFLAGS= -O2 -Wall -lssl -lcrypto
SRCS := $(shell find $(SRC_DIRS) -name *.c -or -name *.s)
OBJS := $(addsuffix .o,$(basename $(SRCS)))
DEPS := $(OBJS:.o=.d)
@ -9,7 +10,7 @@ INC_DIRS := $(shell find $(SRC_DIRS) -type d)
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS)
$(CC) $(CFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS)
.PHONY: clean
clean: