Skip to contentSkip to conversation

makefile cleanup

PATCH New Gerd Knorr 1 participant 1 message Feb 26, 2004 User-mode Linux (UML)

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 makefile cleanup

Hi,

Neat trick to get rid of some symlinks, stolen from the x86-64 makefiles ;)

Gerd

arch/um/sys-i386/Makefile renamed from arch/um/sys-i386/Makefile.sym +3 -16
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel