tiefel@kodak.kodak.com (Lenny Tiefel) (07/06/90)
i 7-5-90 During the noon hour, I constructed a makefile to run my c++ programs. But, for some reason, make will not recognize CC. It converts it to cc, so, of course, all the c++ libraries are missing. Outside of make everything works fine. Therefore, if I compile and load the long way, it works. Any suggestions? Is make broken for CC? -Lenny Tiefel =====================cut here============================================= By hand way ----------- CC -o scrn0 scrn0.c Screen.c CC scrn0.c: CC Screen.C: cc -o /home1/islsun/tiefel/cplus.dir/stan/chap5/scrn0 -I/usr/CC/sun3/incl scrn0.c Screen.c -L/usr/CC/sun3/ -lC Make way -------- tiefel% make cc -sun3 -c scrn0.c ./Screen.h: 9: Can't find include file iostream.h ./Screen.h: 11: Can't find include file stream.h ## ## Makefile for scrn0.c ## (Dated: 7-5-90) ## ## History: ## 7-05-90: added documentation ## ## EXEC= scrn0 ## ## DEFINES ## ## ## -g = Debugging info ## -O = optimize (cannot use -g then) CFLAGS= ## ## ## Libraries ## X11 X11 graphics library ## LIBS= ## ## OBJECTS= scrn0.o \ Screen.o ## ## $(EXEC): $(OBJECTS) CC -o $(EXEC) $(OBJECTS) ## ## Dependencies ## scrn0.c: Screen.h Screen.c: Screen.h ## ## ## end of make file ## Len Tiefel Imaging Science Laboratory Eastman Kodak Company (716) 722-2250 (email tiefel@kodak.com)