mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-22 00:32:15 +00:00
Add CROSS_COMPILE to cross-compile tools
This commit is contained in:
parent
14db762f7e
commit
1d1e1e5bd7
13
Makefile
13
Makefile
@ -30,10 +30,10 @@ SIGNATURE = $(PACKAGE)-$(VERSION) $(WHO)@$(WHERE)($(ARCH) $(OS)) $(WHEN)
|
||||
|
||||
# tools to use
|
||||
|
||||
AS=as
|
||||
CC=gcc
|
||||
LD=ld
|
||||
OBJCOPY=objcopy
|
||||
AS=$(CROSS_COMPILE)as
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
LD=$(CROSS_COMPILE)ld
|
||||
OBJCOPY=$(CROSS_COMPILE)objcopy
|
||||
|
||||
ifneq ($(ARCH),m68k)
|
||||
M68K_CROSS_COMPILE = m68k-linux-
|
||||
@ -157,11 +157,12 @@ second/$(KARCH)-second_scsi::
|
||||
$(KARCH)-second_scsi
|
||||
|
||||
libemile::
|
||||
$(MAKE) -C libemile all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)"
|
||||
$(MAKE) -C libemile all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
||||
CROSS_COMPILE=$(CROSS_COMPILE)
|
||||
|
||||
tools::
|
||||
$(MAKE) -C tools all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
||||
PREFIX=$(PREFIX)
|
||||
PREFIX=$(PREFIX) CROSS_COMPILE=$(CROSS_COMPILE)
|
||||
|
||||
|
||||
dump: last.bin
|
||||
|
@ -1,3 +1,11 @@
|
||||
AS=$(CROSS_COMPILE)as
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
LD=$(CROSS_COMPILE)ld
|
||||
AR=$(CROSS_COMPILE)ar
|
||||
|
||||
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS)
|
||||
LDFLAGS = $(CROSS_COMPILE_LDFLAGS)
|
||||
|
||||
LIBRARY = libemile.a
|
||||
|
||||
OBJS = emile_first_get_param.o emile_first_set_param.o \
|
||||
|
@ -65,4 +65,7 @@ second.o: $(OBJS) $(TOP)/ld.script
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f second_floppy second_scsi floppy/*.o scsi/*.o
|
||||
rm -f m68k-second_floppy m68k-second_scsi \
|
||||
m68k-floppy/*.o m68k-scsi/*.o \
|
||||
ppc-second_floppy ppc-second_scsi \
|
||||
ppc-floppy/*.o ppc-scsi/*.o \
|
||||
|
@ -4,12 +4,17 @@
|
||||
#
|
||||
#
|
||||
|
||||
AS=$(CROSS_COMPILE)as
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
LD=$(CROSS_COMPILE)ld
|
||||
AR=$(CROSS_COMPILE)ar
|
||||
|
||||
PROGRAMS = emile-set-cmdline emile-first-tune emile-install \
|
||||
emile-set-output emile emile-map-set
|
||||
|
||||
CPPFLAGS = -DSIGNATURE="\"$(SIGNATURE)\"" -DPREFIX=\"$(PREFIX)\" -I../libemile
|
||||
CPPFLAGS = $(CROSS_COMPILE_CPPFLAGS) -DSIGNATURE="\"$(SIGNATURE)\"" -DPREFIX=\"$(PREFIX)\" -I../libemile
|
||||
CFLAGS = -Wall -g
|
||||
LDLIBS = -L../libemile -lemile
|
||||
LDLIBS = $(CROSS_COMPILE_LDFLAGS) -L../libemile -lemile
|
||||
|
||||
all: $(PROGRAMS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user