home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17057 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!spsgate!mogate!newsgate!asp!nahaym
  3. From: nahaym@chdasic.sps.mot.com (Michael Nahay)
  4. Subject: Help with 'make' files.
  5. Message-ID: <1992Nov23.202839.3607@newsgate.sps.mot.com>
  6. Keywords: make
  7. Sender: nahaym@asp (Michael Nahay)
  8. Nntp-Posting-Host: 223.210.55.33
  9. Organization: Motorola 
  10. Date: Mon, 23 Nov 1992 20:28:39 GMT
  11. Lines: 26
  12.  
  13. Hi,
  14.  
  15. I trying to use the 'make' utility to compile and link
  16. my programs.  The problem is, I can't seem to get it to
  17. work properly.  I have a program that is split into two
  18. files: main.c and misc.c.  Here's what I tried:
  19. -------------------------------------------------------
  20. all: main
  21. main:    main.o misc.o
  22.     cc main.o misc.o -o main
  23. misc.o : misc.c
  24.     cc -o misc misc.c
  25. main.o : main.c
  26.     cc -o main main.c 
  27. -------------------------------------------------------
  28. I then type 'make', but it never links the main
  29. and misc together....
  30.  
  31. Any ideas? (i'm using hpux 8.07 on an HP730)
  32.  
  33. -- 
  34. Michael Nahay    Motorola SPS ASIC           nahaym@chdasic.sps.mot.com
  35.            1300 N. Alma School Rd
  36.             M/S CH275            office:  (602) 821-4261
  37.              Chandler, Arizona 85224         home:    (602) 491-6401    
  38.  
  39.