声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

声振论坛 展示 工程软件 MSC 查看内容

Makefile for PCL (Windows version)

2015-10-23 23:37| 发布者: aspen| 查看: 950| 评论: 0|原作者: TNC|来自: 声振论坛

摘要: 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 l ...
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)

最新评论

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 04:49 , Processed in 0.045796 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部