staden-lg/src/Misc/makefile-sun

56 lines
678 B
Plaintext

#
# Makefile for Miscellaneous routines (SunOS Version)
#
#
# Objects made by this makefile
#
LIBS = misc.a
#
# Where the wild things are
#
SRC = .
INCLUDES = -I$(SRC)
#
# Sun Version
#
CC = gcc
GCCWARNINGS = -Wreturn-type -Wunused -Wswitch -Wcomment -W -Wformat \
-Wuninitialized
CFLAGS = -ansi -g $(GCCWARNINGS) $(INCLUDES)
#
# Objects
#
OBJS = \
crash.o \
date.o \
filenames.o \
files.o \
find.o \
shell.o \
strings.o
#
# Main dependency
#
$(LIBS) : $(OBJS)
/bin/rm -f $(LIBS) ;\
$(AR) $(ARFLAGS) $(LIBS) $(OBJS) ;\
ranlib $(LIBS)
#
# Special dependencies
#
%.o : $(SRC)/%.c
$(CC) $(CFLAGS) -c $<
all : $(LIBS)
clean :
/bin/rm -f $(OBJS) $(LIBS)