* [uml-devel] [patch] makefile cleanup
@ 2004-02-26 21:29 Gerd Knorr
0 siblings, 0 replies; only message in thread
From: Gerd Knorr @ 2004-02-26 21:29 UTC (permalink / raw)
To: Jeff Dike; +Cc: uml devel
Hi,
Neat trick to get rid of some symlinks, stolen from the x86-64 makefiles ;)
Gerd
--- linux-2.6.3/arch/um/sys-i386/Makefile.sym 2004-02-26 21:55:23.014975595 +0100
+++ linux-2.6.3/arch/um/sys-i386/Makefile 2004-02-26 21:59:55.961970104 +0100
@@ -7,24 +7,11 @@
USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
-SYMLINKS = semaphore.c highmem.c module.c
-SYMLINKS := $(foreach f,$(SYMLINKS),$(src)/$f)
-
-clean-files := $(SYMLINKS)
-
-semaphore.c-dir = kernel
-highmem.c-dir = mm
-module.c-dir = kernel
-
-define make_link
- -rm -f $1
- ln -sf $(TOPDIR)/arch/i386/$($(notdir $1)-dir)/$(notdir $1) $1
-endef
+semaphore-y = ../../i386/kernel/semaphore.o
+highmem-y = ../../i386/mm/highmem.o
+module-y = ../../i386/kernel/module.o
$(USER_OBJS) : %.o: %.c
$(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
-$(SYMLINKS):
- $(call make_link,$@)
-
subdir- := util
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-26 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26 21:29 [uml-devel] [patch] makefile cleanup Gerd Knorr
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.