Allow a utility control which source files it is made up of. This allows
us to reuse some of the utility functions from within libhugetlbfs directly
without linking against the library.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
Makefile | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 0917004..f8cd696 100644
--- a/Makefile
+++ b/Makefile
@@ -241,8 +241,18 @@ obj64/%.s: %.c
@$(VECHO) CC64 -S $@
$(CC64) $(CPPFLAGS) $(CFLAGS) -o $@ -S $<
-$(INSTALL_BIN:%=$(BIN_OBJ_DIR)/%): $(BIN_OBJ_DIR)/%: %.c
- @$(VECHO) CC $@
+$(BIN_OBJ_DIR)/%.o: %.c
+ @$(VECHO) CCHOST $@
+ @mkdir -p $(BIN_OBJ_DIR)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
+
+$(BIN_OBJ_DIR)/hugectl: $(BIN_OBJ_DIR)/hugectl.o
+ @$(VECHO) LDHOST $@
+ mkdir -p $(BIN_OBJ_DIR)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ $^
+
+$(BIN_OBJ_DIR)/hugeedit: $(BIN_OBJ_DIR)/hugeedit.o
+ @$(VECHO) LDHOST $@
mkdir -p $(BIN_OBJ_DIR)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ $^
--
1.6.0.1.451.gc8d31
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel