Removed useless lines, added flags in seperate part
This commit is contained in:
parent
f90caceeb4
commit
53528ff666
7
Makefile
7
Makefile
@ -1,7 +1,8 @@
|
|||||||
TARGET ?= dazibao
|
TARGET ?= dazibao
|
||||||
SRC_DIRS ?= ./src/*
|
SRC_DIRS ?= ./src/*
|
||||||
CC := gcc -Wall -lssl -lcrypto
|
CC := gcc
|
||||||
SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
|
CFLAGS= -O2 -Wall -lssl -lcrypto
|
||||||
|
SRCS := $(shell find $(SRC_DIRS) -name *.c -or -name *.s)
|
||||||
OBJS := $(addsuffix .o,$(basename $(SRCS)))
|
OBJS := $(addsuffix .o,$(basename $(SRCS)))
|
||||||
DEPS := $(OBJS:.o=.d)
|
DEPS := $(OBJS:.o=.d)
|
||||||
|
|
||||||
@ -9,7 +10,7 @@ INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
|||||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS)
|
$(CC) $(CFLAGS) $(OBJS) -o $@ $(LOADLIBES) $(LDLIBS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user