48 lines
639 B
Plaintext
48 lines
639 B
Plaintext
#
|
|
# Makefile for alf - Sun version
|
|
#
|
|
|
|
#
|
|
# Programs made by this makefile
|
|
#
|
|
PROGS = alfsplit
|
|
|
|
#
|
|
# Where the wild things are
|
|
#
|
|
SRC = .
|
|
# not needed for gcc2.1
|
|
#LIBS = /usr/local/lib/gcc-gnulib
|
|
|
|
#
|
|
# Sun
|
|
#
|
|
SRC=.
|
|
TEDSRC=$(SRC)/../ted
|
|
CC = gcc
|
|
GCCWARNINGS = -Wreturn-type -Wunused -Wswitch -Wcomment -W -Wformat \
|
|
-Wuninitialized
|
|
CFLAGS = -g -ansi -pedantic $(GCCWARNINGS) -I$(TEDSRC)
|
|
|
|
|
|
#
|
|
# Make the programs
|
|
#
|
|
alfsplit: alfsplit.o
|
|
$(CC) -o alfsplit alfsplit.o -static $(LIBS)
|
|
|
|
2rs: 2rs.o
|
|
$(CC) -o 2rs 2rs.o $(LIBS)
|
|
|
|
|
|
#
|
|
# Special dependencies
|
|
#
|
|
all: $(PROGS)
|
|
|
|
clean:
|
|
/bin/rm -f $(PROGS) *.o *~
|
|
|
|
%.o : $(SRC)/%.c
|
|
$(CC) $(CFLAGS) -c $<
|