Added bits/wordsize.h.
[tart.git] / rules.mk
blobaccc62511d4deee68adc44673a8ee828c4545507
1 # Rules for Tart.
3 # Get the arch.
4 ifeq ($(TARGET), rpi)
6 else
7 # Error if TARGET not recognized.
8 $(error TARGET set to $(TARGET), which is not a recognized target)
9 endif
11 # Get the tool prefix.
12 ifeq ($(ARCH), arm)
13 TOOLPREFIX := $(PREFIX)/bin/arm-eabi
15 HOSTCC := $(TOOLPREFIX)-gcc
16 HOSTAS := $(TOOLPREFIX)-as
17 HOSTLD := $(TOOLPREFIX)-ld
18 HOSTOBJCOPY := $(TOOLPREFIX)-objcopy
19 else
20 $(error ARCH set to $(ARCH), which is not a recognized architecture)
21 endif