mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Changes to make it compile under FreeBSD.
This commit is contained in:
parent
6f50ceba0f
commit
03d08911fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6321
@ -1,50 +1,5 @@
|
||||
CFLAGS=-g -Wall -c
|
||||
CC=gcc
|
||||
|
||||
#
|
||||
# XCFLAGS is automatically set by Configure.
|
||||
#
|
||||
XCFLAGS=
|
||||
XCFLAGS= -DHASSYSMACROS -DHASMALLOC_H
|
||||
CFLAGS=-g -c $(XCFLAGS)
|
||||
LDFLAGS=
|
||||
OBJS=mkisofs.o tree.o write.o hash.o rock.o exclude.o
|
||||
|
||||
World: mkisofs
|
||||
|
||||
Makefile: Makefile.in Configure
|
||||
./Configure
|
||||
echo "Type make again to build mkisofs."
|
||||
|
||||
mkisofs: Makefile $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o mkisofs $(OBJS)
|
||||
|
||||
install: mkisofs mkisofs.8
|
||||
strip mkisofs
|
||||
cp mkisofs /usr/bin/
|
||||
if [ -d /usr/man/man8 ]; then cp mkisofs.8 /usr/man/man8/; fi
|
||||
|
||||
tree.o: tree.c mkisofs.h iso9660.h exclude.h
|
||||
$(CC) $(CFLAGS) tree.c
|
||||
|
||||
write.o: write.c mkisofs.h iso9660.h
|
||||
$(CC) $(CFLAGS) write.c
|
||||
|
||||
hash.o: hash.c mkisofs.h
|
||||
$(CC) $(CFLAGS) hash.c
|
||||
|
||||
rock.o: rock.c mkisofs.h iso9660.h
|
||||
$(CC) $(CFLAGS) rock.c
|
||||
|
||||
exclude.o: exclude.c exclude.h
|
||||
$(CC) $(CFLAGS) exclude.c
|
||||
|
||||
mkisofs.o: mkisofs.c iso9660.h mkisofs.h exclude.h
|
||||
$(CC) $(CFLAGS) mkisofs.c
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o core mkisofs *~ #*#
|
||||
|
||||
dist:
|
||||
tar -cvf - README Configure Makefile.in make.com TODO COPYING ChangeLog *.8 *.c *.h diag | gzip > mkisofs-1.02.tar.gz
|
||||
PROG= mkisofs
|
||||
MAN8= mkisofs.8
|
||||
SRCS= mkisofs.c tree.c write.c hash.c rock.c exclude.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user