mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 19:13:27 -04:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
all: fdisk cfdisk sfdisk
|
|
|
|
FDISK_OBJS = fdisk.o i386_sys_types.o partname.o \
|
|
fdiskbsdlabel.o fdisksunlabel.o fdiskaixlabel.o fdisksgilabel.o \
|
|
sys_bsd.o
|
|
|
|
SFDISK_OBJS = sfdisk.o sys_bsd.o i386_sys_types.o partname.o getopt.o getopt1.o
|
|
|
|
CFDISK_OBJS = cfdisk.o sys_bsd.o i386_sys_types.o
|
|
|
|
CFLAGS += -DUTIL_LINUX_VERSION=\"2.11z\" -I../getopt/gnu
|
|
|
|
INSTALL?= install -c
|
|
## Debug
|
|
#CFLAGS+= -O0 -g -Wall
|
|
|
|
fdisk: $(FDISK_OBJS)
|
|
$(CC) -o fdisk $(FDISK_OBJS)
|
|
|
|
sfdisk: $(SFDISK_OBJS)
|
|
$(CC) -o sfdisk $(SFDISK_OBJS)
|
|
|
|
cfdisk: $(CFDISK_OBJS)
|
|
$(CC) -o cfdisk $(CFDISK_OBJS) -lncurses
|
|
|
|
getopt.o: ../getopt/gnu/getopt.c
|
|
getopt1.o: ../getopt/gnu/getopt1.c
|
|
|
|
install:
|
|
$(INSTALL) -c -m 0555 -s fdisk ${DESTDIR}${PREFIX}/sbin/fdisk-linux
|
|
$(INSTALL) -c -m 0555 -s cfdisk ${DESTDIR}${PREFIX}/sbin/cfdisk-linux
|
|
$(INSTALL) -c -m 0555 -s sfdisk ${DESTDIR}${PREFIX}/sbin/sfdisk-linux
|
|
$(INSTALL) -c -m 0644 fdisk.8 ${DESTDIR}${PREFIX}/man/man8/fdisk-linux.8
|
|
$(INSTALL) -c -m 0644 cfdisk.8 ${DESTDIR}${PREFIX}/man/man8/cfdisk-linux.8
|
|
$(INSTALL) -c -m 0644 sfdisk.8 ${DESTDIR}${PREFIX}/man/man8/sfdisk-linux.8
|