[转帖]Makefile for PCL (Windows version)
Makefile for PCL (Windows version)Just change PCL_SRC and LIB for your project
----------------- Cut from here --------------------------------
# This Makefile is for build PCL files into a library.
#
# There are two steps to build a PCL file:
# 1. pre-compile using "cpp"
# 2. pcl compliation using "p3pclcomp"
#
# make all
# This is the default configuration. The new functions are added into
# the library. The existing functions are replaced with the latest
# version if they have been changed after the last build.
#
# make rebuild
# P3PCLCOMP does not delete any non-existing funtions which are
# deleted or renamed. Then the library may contain some dirty functions.
# This configuration will rebuild all pre-compiled files and the
# library.
#
# Note:
# - The default suffixes are ".pcl" for PCL source codes and ".pob" for
# pre-compiled files. They may be changed to the desired ones.
# - This makefile was tested on MS Windows
#
# Any suggestion or bugs please email to
#
#
# the directory of include files from MSC.PATRAN
CPP_INC = -IC:\msc\patran\customization
# to specify the library name
LIB = YourLibName.plb
# to add PCL source files here
PCL_SRC = \
PclFile1.pcl \
PclFile2.pcl \
PclFile3.pcl
# Compiler options
CPP = cpp
CFLAGS =
RM = -@erase
LINK = p3pclcomp
PCL_COMP = !!COMPILE
LIB_INP = (LIB).inplist
OBJS=(PCL_SRC:.pcl=.pob)
PCL_SUF = .pcl
CPP_SUF = .pob
# Do not change the following lines
all:clean_lib_inp (LIB)
rebuild:cleanall
(LIB): (OBJS)
(LINK) < (LIBINP)
(RM) (LIBINP)
(LIB_INP):
echo ^!> (LIB_INP)
# various forms of cleanup
clean_lib_inp:
!IF EXIST((LIB_INP))
(RM)(LIB_INP)
!ENDIF
tidy:
(RM)(OBJS)
clean: clean_lib_inp tidy
(RM)(LIB)
.SUFFIXES : (PCLSUF)(CPP_SUF)
(PCLSUF)(CPP_SUF):
(CPP)(CFLAGS) (CPPINC)*(PCLSUF)*(CPPSUF)
echo(PCL_COMP) ∗(CPP_SUF) INTO (LIB) >>(LIB_INP)
页:
[1]