ifeq ($(OBJDIR), x86_64)
BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B i386 -I binary -O elf64-x86-64\""
endif
+ifeq ($(OBJDIR), amd64)
+BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B i386 -I binary -O elf64-x86-64\""
+endif
$(shell mkdir -p $(OBJDIR) )
ar rs $(OUTPUT) `ls -1 $(dir $(BCXFER))/xfer*.o`
$(OBJDIR)/bootstrap:
- gcc -O2 $(BOOTSTRAPFLAGS) bootstrap.c -o $(OBJDIR)/bootstrap
+ $(CC) -O2 $(BOOTSTRAPFLAGS) bootstrap.c -o $(OBJDIR)/bootstrap
$(OBJDIR)/pngtoh: pngtoh.c
- gcc -O2 pngtoh.c -o $(OBJDIR)/pngtoh
+ $(CC) -O2 pngtoh.c -o $(OBJDIR)/pngtoh
$(OBJDIR)/pngtoraw: pngtoraw.c
- gcc -O2 pngtoraw.c -o $(OBJDIR)/pngtoraw -lpng -lz
+ $(CC) -O2 pngtoraw.c -o $(OBJDIR)/pngtoraw -lpng -lz
clean:
rm -rf $(OBJDIR)