2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for patch
|
|
|
|
|
|
|
|
CFLAGS= -O -DVOIDSIG -wo -D_MINIX -D_POSIX_SOURCE -DSMALL
|
|
|
|
|
2005-09-07 10:43:25 +02:00
|
|
|
CC = exec cc
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
OBJ = patch.o pch.o inp.o util.o version.o
|
|
|
|
|
|
|
|
all: patch
|
|
|
|
|
|
|
|
patch: $(OBJ)
|
|
|
|
cc -i -o patch $(OBJ)
|
2005-09-11 02:05:55 +02:00
|
|
|
install -S 1M patch
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
install: /usr/bin/patch
|
|
|
|
|
|
|
|
/usr/bin/patch: patch
|
|
|
|
install -cs -o bin patch $@
|
|
|
|
|
|
|
|
patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
|
|
|
|
pch.o: config.h common.h pch.c pch.h util.h
|
|
|
|
inp.o: config.h common.h inp.c inp.h util.h
|
|
|
|
util.o: config.h common.h util.c util.h
|
|
|
|
version.o: config.h common.h version.c version.h patchlevel.h util.h
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.bak *.o *.s core patch
|