add support for building 32 and 64 bit targets
[debian/elilo] / ia32 / Makefile
index 353ae6791dffb98d8803a5ee148d313d01e09fee..dadffac96724c99787cd65badd49189df8ac1d35 100644 (file)
 # to use this program.
 #
 
-include ../Make.defaults
-include ../Make.rules
+SRCDIR = .
+
+VPATH = $(SRCDIR)
+
+include $(SRCDIR)/../Make.defaults
+include $(SRCDIR)/../Make.rules
+
+TOPDIR=$(SRCDIR)/..
 
-TOPDIR=$(CDIR)/..
 
 FILES=system.o config.o bzimage.o plain_loader.o gzip_loader.o gzip.o
 
@@ -43,7 +48,7 @@ rmswitch.h: bin_to_h.c rmswitch.S
        ./bin_to_h <rmswitch >rmswitch.h
 
 $(TARGET): $(FILES)
-       $(LD) -r -o $@ $(FILES)
+       $(LD) $(LD3264) -r -o $@ $(FILES)
 
 clean:
        $(RM) -f $(TARGET) $(FILES)