home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!not-for-mail
- From: ren@function.mps.ohio-state.edu (Liming Ren)
- Newsgroups: comp.unix.questions
- Subject: What is .nse_depinfo?
- Date: 23 Nov 1992 16:42:05 -0500
- Organization: Department of Mathematics, The Ohio State University
- Lines: 38
- Distribution: world
- Message-ID: <1erj7dINNa9j@function.mps.ohio-state.edu>
- NNTP-Posting-Host: function.mps.ohio-state.edu
-
- I used the target .KEEP_STATE: in my makefile. Besides .make_states,
- it also generated a file named .nse_depinfo with the following contents:
-
- oppress-LD: /lib/libg.a
- oppress-COMP: /usr/lib/crt0.o
- liberate-LD: /lib/libg.a
- liberate-COMP: /usr/lib/crt0.o
-
- where oppress and liberate are two executiable compiled from c code.
-
- Can somebody explain this to me? especially the meanings of LD and COMP.
- What are inside crt0.o and libg.a?
-
- Enclosed is the makefile.
-
- CC =cc -O
- TARGET1 =oppress
- TARGET2 =liberate
-
- # you only need to modify OBJS for new programs
- OBJS1 =oppress.o hash.o bio.o
- OBJS2 =liberate.o hash2.o bio.o
-
- .KEEP_STATE:
-
- all debug: oppress liberate
- debug:=CC=cc -g
-
- $(TARGET1): $(OBJS1)
- $(CC) $(OBJS1) -o $(TARGET1)
-
- $(TARGET2): $(OBJS2)
- $(CC) $(OBJS2) -o $(TARGET2)
-
- %.o: %.c
- $(CC) -c -o $@ $*.c
- clean:
- /usr/bin/rm *.o oppress liberate
-