home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!hubcap!ncrcae!ncrlnk!usglnk!usdsd1!dkowalsk
- From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
- Newsgroups: comp.unix.questions
- Subject: Make with multiple directories
- Message-ID: <1563@usdsd1.DaytonOH.NCR.COM>
- Date: 27 Aug 92 19:35:16 GMT
- Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
- Distribution: world
- Organization: NCR USG Data Services Division
- Lines: 49
-
-
-
- The following is an example of one of our make files.
-
- TARGET = $(SYSMAKE)vlidump
-
- LIB =$(LIBS)
-
- OFILES= \
- vlidump.o
-
-
- $(TARGET): $(OFILES) $(LIB)
- $(CC) -o $@ $(OFILES) $(LIB)
-
- vlidump.o: $(HFILES) $(INCDIR)/str2.h
-
-
-
-
- The LIBS variable is set prior to the make. This works fine.
-
- The INCDIR variable is set prior to the make. This works fine.
-
- The SYSMAKE variable is set to null or /some/dirname/ prior to the make
- running.
- This results in the generated executable being written to the current
- directory or to some other directory.
- This works fine.
-
-
- My new problem is a requirement to have the source files in directory A,
- the make running in directory B, the .o files are to be written in
- directory B, and
- the executable writtten as before, either in the current directory (B)
- or the $(SYSMAKE) directory (C).
-
- Anyone have any ideas how to do this??
-
-
- Dennis Kowalski NCR Corporation PCD-3 (513) 445-1843
- Systems Architecture 1700 S. Patterson Blvd VOICEplus 622-1843
- USG Data Services Div Dayton, Ohio 45479
- Dennis.Kowalski@DaytonOH.NCR.COM
- --
- Dennis Kowalski NCR Corporation PCD-3 (513) 445-1843
- Systems Architecture 1700 S. Patterson Blvd VOICEplus 622-1843
- USG Data Services Div Dayton, Ohio 45479
- Dennis.Kowalski@DaytonOH.NCR.COM
-