当前位置: 技术问答>linux和unix
有个很简单的makefile,有些东东不是太理解,各位高手帮我看看!高分!
来源: 互联网 发布时间:2015-02-08
本文导语: INCL=-I$(QTDIR)/include -I$(KDEDIR)/include CFLAGS=-pipe -O2 -fno-strength-reduce LFLAGS=-L$(QTDIR)/lib -L$(KDEDIR)/lib -L/usr/X11R6/lib LIBS=-lqt-mt CC=g++ download: download.o $(CC) $(LFLAGS) -o download download.o $(LIBS) download.o: download.cpp clean: rm -f downlo...
INCL=-I$(QTDIR)/include
-I$(KDEDIR)/include
CFLAGS=-pipe -O2 -fno-strength-reduce
LFLAGS=-L$(QTDIR)/lib -L$(KDEDIR)/lib -L/usr/X11R6/lib
LIBS=-lqt-mt
CC=g++
download: download.o
$(CC) $(LFLAGS) -o download download.o $(LIBS)
download.o: download.cpp
clean: rm -f download
rm -f download.o
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) $(INCL) -o $@ $
-I$(KDEDIR)/include
CFLAGS=-pipe -O2 -fno-strength-reduce
LFLAGS=-L$(QTDIR)/lib -L$(KDEDIR)/lib -L/usr/X11R6/lib
LIBS=-lqt-mt
CC=g++
download: download.o
$(CC) $(LFLAGS) -o download download.o $(LIBS)
download.o: download.cpp
clean: rm -f download
rm -f download.o
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) $(INCL) -o $@ $