• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
creating a project with three connected sub projects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating a project with three connected sub projects.


  • Subject: creating a project with three connected sub projects.
  • From: Carl Barron <email@hidden>
  • Date: Thu, 14 May 2009 21:42:00 -0400

I currently have three projects
dynamic - creates a lexer dynamically depends on main.cpp and matlib.h
static - creates a lexer statically depends on main.cpp with a predefined macro ,matlib.h and static_real.h
generate - creates static_real.h depends on a main.cpp and matlib.h


static_real.h depends on generate and matlib.h that is if its older than generate or matlib.h
run generate to create a new static_real.h


keeping track of where everything is is a pain for this small project there are four or five
source files. Since make can do this [if I remember correctly] so xcode should be able to
keep the files in sync.
all: dynamic static generate static_real.h
make dynamic
make generate
make static_real.h
make static
touch all
dynamic: main.cpp matlib.h
g++ some_common_options main.cpp -o dynamic
static: main.cpp matlib.h static_real.h
g++ some_common_options -DCMB_LEXER_IS_STATIC main.cpp -o static
generate: generate.cpp matlib.h
g++ some_common_options generate.cpp -o generate
static_real.h: generate matlib.h
generate


the idea is to test with a dynamic lexer and replace with a static one when lexer
appears correct, and be able to fairly easy to keep all three programs in sync.


Hope this makes sense.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: iPhone Platform Compiler Symbol?
  • Next by Date: Re: date-time info at compile time
  • Previous by thread: Re: Switching from Simulator to Device
  • Next by thread: Release Version Not Appearing
  • Index(es):
    • Date
    • Thread