minix/commands/patch/Makefile

29 lines
595 B
Makefile
Raw Normal View History

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)
install -S 32kw patch
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