?? makefile
字號:
#/******************************************************************# * Modul name : makefile# * Author : Zoltan Kato# * Description:# * Make file for making MRFdemo# * make all = compilation + installation + clean.# * make compile = compilation.# * make install = compilation + installation.# * make clean = clean.# * ## Adapted from the wxwindows sample makefile written by Robert Roebling. ## This makefile requires a Unix version of wxWindows# to be installed on your system. This is most often# done typing "make install" when using the complete# sources of wxWindows or by installing the two# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm# under Linux.### * $Id: makefile,v 1.2 2005/01/13 11:15:53 kato Exp $# * $Revision: 1.2 $# * $State: Exp $# * $Log: makefile,v $# * Revision 1.2 2005/01/13 11:15:53 kato# * updated for new directory structure# *# * Revision 1.1 2004/12/08 13:15:24 kato# * Initial revision# *# *****************************************************************/## dirs, flags & libs#INCLUDE=$(HOME)/includeLIBPATH=$(HOME)/lib-$(ARCH)INSTALLDIR=$(HOME)/bin-$(ARCH)MANDIR=$(HOME)/manCFLAGS= `wx-config --cflags` -D$(OS) -I$(INCLUDE) -ansi -D__USE_FIXED_PROTOTYPES__LDFLAGS= -L$(LIBPATH) `wx-config --libs`LIBS= -lmifeq ($(OS),SunOS)LIBS=$(LIBS) -libertyendifVPATH= ../src## Source files:#CFILES= $(wildcard ../src/*.cpp)## Target files#OBJECTS=$(subst ../src/,./,$(CFILES:.cpp=.o))TARGETS= mrfdemo## Suffixes#.SUFFIXES: .cpp.o.cpp.o: ; echo 'Compiling $*.cpp'; gcc $(CFLAGS) -c $^## Rules#.SILENT:all: install clean$(TARGETS) : $(OBJECTS) echo 'Building $@' gcc -o $@ $^ $(LDFLAGS) $(LIBS)compile: $(TARGETS)clean: echo 'Cleaning up' /bin/rm -f $(OBJECTS) /bin/rm -f $(TARGETS)install: compile echo 'Installing $(TARGETS) in $(INSTALLDIR)/' cp $(TARGETS) $(INSTALLDIR)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -