home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!spsgate!mogate!newsgate!asp!nahaym
- From: nahaym@chdasic.sps.mot.com (Michael Nahay)
- Subject: Help with 'make' files.
- Message-ID: <1992Nov23.202839.3607@newsgate.sps.mot.com>
- Keywords: make
- Sender: nahaym@asp (Michael Nahay)
- Nntp-Posting-Host: 223.210.55.33
- Organization: Motorola
- Date: Mon, 23 Nov 1992 20:28:39 GMT
- Lines: 26
-
- Hi,
-
- I trying to use the 'make' utility to compile and link
- my programs. The problem is, I can't seem to get it to
- work properly. I have a program that is split into two
- files: main.c and misc.c. Here's what I tried:
- -------------------------------------------------------
- all: main
- main: main.o misc.o
- cc main.o misc.o -o main
- misc.o : misc.c
- cc -o misc misc.c
- main.o : main.c
- cc -o main main.c
- -------------------------------------------------------
- I then type 'make', but it never links the main
- and misc together....
-
- Any ideas? (i'm using hpux 8.07 on an HP730)
-
- --
- Michael Nahay Motorola SPS ASIC nahaym@chdasic.sps.mot.com
- 1300 N. Alma School Rd
- M/S CH275 office: (602) 821-4261
- Chandler, Arizona 85224 home: (602) 491-6401
-
-