home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13871 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.2 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!not-for-mail
  2. From: ren@function.mps.ohio-state.edu (Liming Ren)
  3. Newsgroups: comp.unix.questions
  4. Subject: What is .nse_depinfo?
  5. Date: 23 Nov 1992 16:42:05 -0500
  6. Organization: Department of Mathematics, The Ohio State University
  7. Lines: 38
  8. Distribution: world
  9. Message-ID: <1erj7dINNa9j@function.mps.ohio-state.edu>
  10. NNTP-Posting-Host: function.mps.ohio-state.edu
  11.  
  12. I used the target .KEEP_STATE: in my makefile. Besides .make_states, 
  13. it also generated a file named .nse_depinfo with the following contents:
  14.  
  15. oppress-LD: /lib/libg.a
  16. oppress-COMP: /usr/lib/crt0.o
  17. liberate-LD: /lib/libg.a
  18. liberate-COMP: /usr/lib/crt0.o
  19.  
  20. where oppress and liberate are two executiable compiled from c code.
  21.  
  22. Can somebody explain this to me?  especially the meanings of LD and COMP.
  23. What are inside crt0.o and libg.a?
  24.  
  25. Enclosed is the makefile.
  26.  
  27. CC =cc -O
  28. TARGET1 =oppress
  29. TARGET2 =liberate
  30.  
  31. # you only need to modify OBJS for new programs
  32. OBJS1 =oppress.o hash.o bio.o
  33. OBJS2 =liberate.o hash2.o bio.o
  34.  
  35. .KEEP_STATE:
  36.     
  37. all debug: oppress liberate
  38. debug:=CC=cc -g
  39.  
  40. $(TARGET1): $(OBJS1)
  41.     $(CC) $(OBJS1) -o $(TARGET1)
  42.  
  43. $(TARGET2): $(OBJS2)
  44.     $(CC) $(OBJS2) -o $(TARGET2)
  45.  
  46. %.o: %.c
  47.     $(CC)  -c -o $@ $*.c
  48. clean:
  49.     /usr/bin/rm *.o oppress liberate
  50.