Initial Import from SVN

This commit is contained in:
Matt Jenkins
2014-04-09 14:27:18 +01:00
parent 8976e834c4
commit 895f96d2f7
3153 changed files with 748589 additions and 0 deletions

33
src/cmd/diff/Makefile Normal file
View File

@@ -0,0 +1,33 @@
TOPSRC = $(shell cd ../../..; pwd)
include $(TOPSRC)/target.mk
CFLAGS += -Werror
SRCS = diff.c diffdir.c diffreg.c
OBJS = diff.o diffdir.o diffreg.o
DIFF = /bin/diff
DIFFH = /libexec/diffh
PR = /bin/pr
CFLAGS += -DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"'
all: diff diffh
diff: ${OBJS}
${CC} ${LDFLAGS} -o diff.elf ${OBJS} ${LIBS}
${OBJDUMP} -S diff.elf > diff.dis
${SIZE} diff.elf
${ELF2AOUT} diff.elf $@ && rm diff.elf
diffh: diffh.o
${CC} ${LDFLAGS} -o diffh.elf $< ${LIBS}
${OBJDUMP} -S diffh.elf > diffh.dis
${SIZE} diffh.elf
${ELF2AOUT} diffh.elf $@ && rm diffh.elf
clean:
rm -f *.o *.elf ${MAN} diff diffh *.elf *.dis tags *~
install: all
install diff ${DESTDIR}/bin/diff
install diffh ${DESTDIR}/libexec/diffh