Watch 1 Star 0 Fork 0

jackindata / linux-dev-envShellMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
linux 开发环境配置 spread retract

Clone or download
makefile 753 Bytes
Copy Edit Web IDE Raw Blame History
jackindata authored 2019-03-22 13:41 . Add makefile
CC = g++
VPATH =
LIB_DIR =
INCLUDES =
CFLAGS = -Wall -g
LIBS = -lopencv_core -lopencv_imgproc -lopencv_highgui
OBJS =
TARGET = combine_two_pictures
all:$(TARGET)
combine_two_pictures:combine_two_pictures.o $(OBJS)
$(CC) -o $@ $^ $(INCLUDES) $(LIBS)
%.o:%.c
$(CC) -c $< -o $@ $(INCLUDES) $(CFLAGS)
%.d:%.c
@set -e; $(CC) -MM $< $(INCLUDES) > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.o:%.cpp
$(CC) -c $< -o $@ $(INCLUDES) $(CFLAGS)
%.d:%.cpp
@set -e; $(CC) -MM $< $(INCLUDES) > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
sinclude $(OBJS:.o=.d)
.PHONY:
clean:
rm -f $(TARGET) *.o *.d *.d.*
install:$(TARGET)
cp $(TARGET) $(INSTALL_DIR)

Comment ( 0 )

Sign in for post a comment

Shell
1
https://gitee.com/liaojieliang/linux-dev-env.git
git@gitee.com:liaojieliang/linux-dev-env.git
liaojieliang
linux-dev-env
linux-dev-env
master

Help Search