ack/util/grind/proto.main

56 lines
1.4 KiB
Plaintext
Raw Normal View History

1991-09-13 14:53:27 +00:00
# $Header$
# C compilation part. Not to be called directly.
# Instead, it is to be called by the Makefile.
# SRC_DIR, UTIL_HOME, TARGET_HOME, CC, COPTIONS, LINT, LINTOPTIONS, LDOPTIONS,
# CC_AND_MKDEP, SUF, LIBSUF should be set here.
#PARAMS do not remove this line!
MDIR = $(TARGET_HOME)/modules
LIBDIR = $(MDIR)/lib
LINTLIBDIR = $(UTIL_HOME)/modules/lib
MALLOC = $(LIBDIR)/malloc.$(SUF)
MODLIB = \
$(LIBDIR)/libassert.$(LIBSUF) \
$(LIBDIR)/liballoc.$(LIBSUF) \
1991-09-16 09:59:09 +00:00
$(LIBDIR)/libobject.$(LIBSUF) \
1991-09-13 14:53:27 +00:00
$(MALLOC) \
$(LIBDIR)/libprint.$(LIBSUF) \
$(LIBDIR)/libstring.$(LIBSUF) \
$(LIBDIR)/libsystem.$(LIBSUF)
LIBS = $(MODLIB)
LINTLIBS = \
$(LINTLIBDIR)/$(LINTPREF)assert.$(LINTSUF) \
$(LINTLIBDIR)/$(LINTPREF)alloc.$(LINTSUF) \
$(LINTLIBDIR)/$(LINTPREF)print.$(LINTSUF) \
$(LINTLIBDIR)/$(LINTPREF)string.$(LINTSUF) \
$(LINTLIBDIR)/$(LINTPREF)system.$(LINTSUF)
PROFILE =
INCLUDES = -I. -I$(SRC_DIR) -I$(TARGET_HOME)/modules/h -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/pkg
CFLAGS = $(PROFILE) $(INCLUDES) $(COPTIONS)
LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
LDFLAGS = $(PROFILE) $(LDOPTIONS)
# C_SRC and OBJ should be set here.
#LISTS do not remove this line!
1991-09-16 09:59:09 +00:00
all: grind
1991-09-13 14:53:27 +00:00
clean:
1991-09-16 09:59:09 +00:00
rm -f *.$(SUF) grind
1991-09-13 14:53:27 +00:00
lint:
$(LINT) $(LINTFLAGS) $(C_SRC) $(LINTLIBS)
1991-09-16 09:59:09 +00:00
grind: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o grind
1991-09-13 14:53:27 +00:00
# do not remove the next line; it is used for generating dependencies
#DEPENDENCIES