声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2658|回复: 0

[Patran专区] [转帖]Makefile for PCL (Windows version)

[复制链接]
发表于 2006-5-20 01:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
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-11-29 05:05 , Processed in 0.050405 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表