Date: Tue, 21 Nov 1995 08:21:21 -0500 From: MPhag@aol.com To: questions@freebsd.org Subject: Makefile not making Message-ID: <951121082121_112658601@mail06.mail.aol.com>
next in thread | raw e-mail | index | archive | help
I have FreeBSD 2.0.5 on a 486DX2 with 8 meg of RAM. I am trying to compile a shareware library called cbase. It is a database engine written in ansi c. It comes with unix make files and very scarce instructions on how to install for a unix os. I have tried to follow the directions as close as I could, and it appears that the make file is not invoking the complier. That is what a make file is supposed to do right? If I manually compile: # cc manx I get the program made and then the make file seems to run ok. But if I have to manually compile, what is the make file for? Also, this program has only one source file. The other 3 or 4 parts are supposed to compile into complete libraries and have about 30 source files each. I have included the smallest make file here. Thank you Matthew Hagerty P.S. What part of this is supposed to invoke the compiler? ****************************************************************************** ******************* # # Copyright (c) 1989-1992 Citadel Software, Inc. # All Rights Reserved # # unix.mak 1.5 - 93/01/01 # manx makefile CC = cc# # C compiler CFLAGS = -O# # C compiler options BINDIR = /usr/bin# # bin directory LINT = lint -b -p# # lint command and options PROGRAM = manx# # program name MAN = $(PROGRAM).man# manual file FILES = makefile ansi.h $(PROGRAM).c SRCS = $(PROGRAM).c OBJS = $(SRCS:.c=.o) MANS = $(PROGRAM).c all: $(PROGRAM) install man $(PROGRAM): install: @if test -s $(BINDIR)/$(PROGRAM) = 0; \ then \ echo $(BINDIR)/$(PROGRAM) exists\.; \ echo -n "Do you wish to copy over it? "; \ read response; \ case $$response in \ y | Y | yes | YES | Yes) ;; \ *) exit 1 ;; \ esac \ fi; \ cp $(PROGRAM) $(BINDIR)/$(PROGRAM) @echo $(PROGRAM) installed. lint: $(LINT) $(SRCS) man: $(MAN) $(MAN): $(MANS) cat $(MANS) | manx > $@ clean: rm $(PROGRAM) rm *.o rm *.man # eof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?951121082121_112658601>