memdisk: remove unnecessary files; add vpath instead; add files to CSRC
authorGene Cumm <gene.cumm@gmail.com>
Tue, 8 Feb 2011 17:05:25 +0000 (12:05 -0500)
committerGene Cumm <gene.cumm@gmail.com>
Tue, 8 Feb 2011 17:05:25 +0000 (12:05 -0500)
This removes the need to have these tiny files around.  This also
changes it to be relative to $(topdir), allowing for memdisk to be moved
if needed in the future.

memdisk/Makefile
memdisk/ctypes.c [deleted file]
memdisk/strntoumax.c [deleted file]
memdisk/strtoull.c [deleted file]
memdisk/strtox.c [deleted file]
memdisk/suffix_number.c [deleted file]

index 73305d5..beead60 100644 (file)
@@ -43,12 +43,16 @@ OBJS32   = start32.o setup.o msetup.o e820func.o conio.o memcpy.o memset.o \
           memdisk_chs_512.o memdisk_edd_512.o \
           memdisk_iso_512.o memdisk_iso_2048.o
 
-CSRC     = setup.c msetup.c e820func.c conio.c unzip.c dskprobe.c eltorito.c
+CSRC     = setup.c msetup.c e820func.c conio.c unzip.c dskprobe.c eltorito.c \
+          $(topdir)/com32/lib/ctypes.c $(topdir)/com32/lib/strntoumax.c \
+          $(topdir)/com32/lib/strtoull.c $(topdir)/com32/libutil/suffix_number.c
 SSRC     = start32.S memcpy.S memset.S memmove.S
 NASMSRC  = memdisk_chs_512.asm memdisk_edd_512.asm \
           memdisk_iso_512.asm memdisk_iso_2048.asm \
           memdisk16.asm
 
+vpath %.c $(topdir)/com32/lib:$(topdir)/com32/libutil
+
 all: memdisk # e820test
 
 # tidy, clean removes everything except the final binary
diff --git a/memdisk/ctypes.c b/memdisk/ctypes.c
deleted file mode 100644 (file)
index f87ca05..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "../com32/lib/ctypes.c"
diff --git a/memdisk/strntoumax.c b/memdisk/strntoumax.c
deleted file mode 100644 (file)
index 6fa2f35..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "../com32/lib/strntoumax.c"
diff --git a/memdisk/strtoull.c b/memdisk/strtoull.c
deleted file mode 100644 (file)
index e2425df..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "../com32/lib/strtoull.c"
diff --git a/memdisk/strtox.c b/memdisk/strtox.c
deleted file mode 100644 (file)
index 445681f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "../com32/lib/strtox.c"
diff --git a/memdisk/suffix_number.c b/memdisk/suffix_number.c
deleted file mode 100644 (file)
index dd26642..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#include "../com32/libutil/suffix_number.c"