由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - Linux Makefile: How to include cpp files in subfolder for
相关主题
Makefile中怎么处理没有扩展名的文件?开机直接kernel panic会是什么原因?
只要世界上有几百个版本,linux就永远没有戏做个调查。大家都用什么linux distro?
Anyone used these distros?请问我应该安装哪个linux的dist?
virtualbox + ubuntu 12.04LTS bugUbuntu 或者 Debian based 的哪个 distro 最省资源?
发现elementary OS做的不错啊哪一个distro可以在winxp下面安装?
ubuntu 8.04+ t61 dock的问题linux.com 归正主儿管了
Ubuntu 9.04alpha 有 Ext4,据说感觉到快,heheSUSE 11 是不是第一个企业桌面 Linux
firefox开始崩溃了。。。大家总结一下linux版的月经贴吧
相关话题的讨论汇总
话题: cpp话题: makefile话题: linux话题: subfolder话题: distro
进入Linux版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
so my folder contains: 1.cpp 2.cpp 3.cpp
also 2 folders: ubuntu, redhat. Each contains ubuntu.cpp, redhat.cpp.
If distribution is ubuntu, it should compile 1.cpp, 2.cpp, 3.cpp, ubuntu.cpp
i tried it like this,
SRCS_CPP =$(filter-out file_i_dont_like.cpp, $(wildcard *.cpp), $(DISTRO)/$(
wildcard *.cpp))
the behavior is strange.
cmd line is sth like: make -f myMakeFile DISTRO=ubuntu
sorry i cannot easily show you the error yet, our project is too messy. But
it seems trying to compile sth. doesn't exist.
Many thanks for your suggestions !
a9
发帖数: 21638
2
DISTRO=ubuntu make -f myMakeFile试试

cpp
$(
But

【在 s*****w 的大作中提到】
: so my folder contains: 1.cpp 2.cpp 3.cpp
: also 2 folders: ubuntu, redhat. Each contains ubuntu.cpp, redhat.cpp.
: If distribution is ubuntu, it should compile 1.cpp, 2.cpp, 3.cpp, ubuntu.cpp
: i tried it like this,
: SRCS_CPP =$(filter-out file_i_dont_like.cpp, $(wildcard *.cpp), $(DISTRO)/$(
: wildcard *.cpp))
: the behavior is strange.
: cmd line is sth like: make -f myMakeFile DISTRO=ubuntu
: sorry i cannot easily show you the error yet, our project is too messy. But
: it seems trying to compile sth. doesn't exist.

s*****w
发帖数: 1527
3
didn't work, :(

【在 a9 的大作中提到】
: DISTRO=ubuntu make -f myMakeFile试试
:
: cpp
: $(
: But

1 (共1页)
进入Linux版参与讨论
相关主题
大家总结一下linux版的月经贴吧发现elementary OS做的不错啊
我想问问为什么大家都喜欢ubuntuubuntu 8.04+ t61 dock的问题
The Loongson-2 MIPS Lemote Yeeloong NetbookUbuntu 9.04alpha 有 Ext4,据说感觉到快,hehe
偶看 KDE, Gnome, 可能要让出一块地盘给 Android 了firefox开始崩溃了。。。
Makefile中怎么处理没有扩展名的文件?开机直接kernel panic会是什么原因?
只要世界上有几百个版本,linux就永远没有戏做个调查。大家都用什么linux distro?
Anyone used these distros?请问我应该安装哪个linux的dist?
virtualbox + ubuntu 12.04LTS bugUbuntu 或者 Debian based 的哪个 distro 最省资源?
相关话题的讨论汇总
话题: cpp话题: makefile话题: linux话题: subfolder话题: distro