home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!unix!updike!nixon
- From: nixon@updike.sri.com (Tom Nixon)
- Newsgroups: comp.unix.questions
- Subject: Help with Make files
- Summary: Novice needs help with tricky makefile
- Keywords: make
- Message-ID: <nixon.728076022@updike>
- Date: 26 Jan 93 19:20:22 GMT
- Sender: news@unix.SRI.COM
- Lines: 20
-
-
- Can anyone help me create the following make file? Lets say I have
- two files called foo.i and bar.i. (Actually there may be many more .i files,
- but two will suffice for now.) The first step is to convert these .i files to
- .c files. This would be done at a unix prompt by running a script file called
- convert.sh (which only takes one .i file at a time) in the following manner:
- >> convert.sh foo.i
- >> convert.sh bar.i
- This now gives me foo.c and bar.c. Along with these .c files, I have another
- file called main.c (which is not created with convert.sh). I want to compile
- all the .c files with "acc" to make foo.o, bar.o, and main.o. Next, I would
- like to link them all together with the final executable stored under the name
- "main". Can all this be done within a nice convenient make file?
-
- **** Could any help on this subject please be sent directly to me at:
- **** nixon@updike.sri.com
-
- Thanks in advance
-
- Tom Nixon
-