ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

util-linux.mk (1141B)


      1 BIN = fdisk cfdisk hwclock losetup
      2 LIB = libuuid.a libfdisk.a libcommon.a libblkid.a
      3 
      4 libcommon_a_OBJ = `{ls lib/*.c | sed 's/.$/o/'}
      5 libfdisk_a_OBJ = `{ls libfdisk/src/*.c | sed 's/.$/o/'}
      6 libuuid_a_OBJ = `{ls libuuid/src/*.c | sed 's/.$/o/'}
      7 libblkid_a_OBJ = `{for dir in partitions superblocks topology; do ls libblkid/src/$dir/*.c | sed 's/.$/o/'; done; ls libblkid/src/*.c | sed 's/.$/o/'}
      8 
      9 fdisk_OBJ = fdisks/fdisk.o fdisks/fdisk-ask.o fdisks/fdisk-menu.o
     10 fdisk_LDFLAGS = -L. -luuid -lfdisk -lcommon -lblkid
     11 
     12 cfdisk_OBJ = fdisks/cfdisk.o
     13 cfdisk_LDFLAGS = -lncursesw $fdisk_LDFLAGS
     14 
     15 hwclock_OBJ = sys-utils/hwclock.o sys-utils/hwclock-cmos.o sys-utils/hwclock-rtc.o sys-utils/hwclock-kd.o
     16 hwclock_LDFLAGS = -L. -lcommon
     17 
     18 losetup_OBJ = sys-utils/losetup.o
     19 losetup_LDFLAGS = -L. -lcommon
     20 
     21 INSTALL_BIN = fdisk cfdisk hwclock losetup
     22 INSTALL_MAN8 = fdisks/fdisk.8 fdisks/cfdisk.8 sys-utils/hwclock.8 sys-utils/losetup.8
     23 
     24 LOCAL_CFLAGS = -include config.h -Iinclude -Ilibfdisk/src -Ilibuuid/src -Ilibblkid/src -I.
     25 DEPS = ncurses
     26 
     27 <$mkbuild/mk.default
     28 
     29 %.o: config.h
     30 
     31 fdisk: $LIB
     32 cfdisk: $LIB
     33 
     34 config.h:QV:
     35 	cp ../util-linux-config.h config.h