
makefile
沧海一朵浪
杭州小蚂蚁
展开
-
makefile 把文件导出到其他的文件中如obj
PROJECT=abc MYLIB= SYSLIB= CFLAG=-g CC=gcc GCC=gcc OBJDIR=./obj SRCS=$(wildcard *.cpp) OBJS=$(patsubst %.cpp,$(OBJDIR)/%.o,$(SRCS)) $(PROJECT):$(OBJS) $(GCC) -o $@ $^ $(CFLAG) $(SY转载 2013-07-18 22:13:49 · 712 阅读 · 0 评论 -
makefile
[root@galileo tmp]# ls Makefile obj readpci.c [root@galileo tmp]# cat Makefile OBJDIR=obj OBJS=$(patsubst %.c,$(OBJDIR)/%.o,$(wildcard *.c)) a转载 2013-07-18 22:24:53 · 564 阅读 · 0 评论