X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=x86_64%2FMakefile;h=4af4b8d9448cec31ac7fe906d2fdef5903ca6ac1;hb=8d96dc4fad7b7fb7985f9568c27649de3e43d6bc;hp=7ade312780dedf7f4ad9ceb20f7c448c92ea3f44;hpb=b99b311775052d2e6175b3be10a374cf939d15a2;p=debian%2Felilo diff --git a/x86_64/Makefile b/x86_64/Makefile index 7ade312..4af4b8d 100644 --- a/x86_64/Makefile +++ b/x86_64/Makefile @@ -23,15 +23,10 @@ # to use this program. # -SRCDIR = . - -VPATH = $(SRCDIR) - -include $(SRCDIR)/../Make.defaults -include $(SRCDIR)/../Make.rules - -TOPDIR=$(SRCDIR)/.. +include ../Make.defaults +include ../Make.rules +TOPDIR=$(CDIR)/.. FILES=system.o config.o bzimage.o plain_loader.o gzip_loader.o gzip.o #FILES=system.o config.o plain_loader.o @@ -43,13 +38,13 @@ all: $(TARGET) system.o: rmswitch.h rmswitch.h: bin_to_h.c rmswitch.S - $(CC) -o bin_to_h $(SRCDIR)/bin_to_h.c - $(AS) -o rmswitch.o $(SRCDIR)/rmswitch.S + $(CC) -o bin_to_h bin_to_h.c + $(AS) -o rmswitch.o rmswitch.S $(LD) -Ttext 0x0 -s --oformat binary -o rmswitch rmswitch.o ./bin_to_h rmswitch.h $(TARGET): $(FILES) - $(LD) $(LD3264) -r -o $@ $(FILES) + $(LD) -r -o $@ $(FILES) clean: $(RM) -f $(TARGET) $(FILES)