1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-05 06:17:31 +02:00

Changed default target to "ben" and added Ben upload.

- f32x/Makefile: "ben" is now the default target
- f32x/Makefile: made upload process target-dependent
This commit is contained in:
Werner Almesberger 2010-10-22 14:49:10 -03:00
parent e614d15fef
commit 13aa36be2b

View File

@ -14,7 +14,7 @@
PREFIX=/usr
ifeq ($(TARGET),)
TARGET = om
TARGET = ben
endif
CC_om = arm-angstrom-linux-gnueabi-gcc
@ -29,6 +29,9 @@ LDFLAGS_ben =
OBJS_om = c2-om.o gpio-s3c24xx.o rt.o
OBJS_ben = c2-ben.o gpio-xburst.o
UPLOAD_om = ssh lab neo 'cat \>f32x' <f32x
UPLOAD_ben = scp f32x ben:
NAME = f32x
CC = $(CC_$(TARGET))
CFLAGS = -Wall -Wshadow -g $(CFLAGS_$(TARGET))
@ -43,7 +46,7 @@ all: $(NAME)
$(NAME): $(OBJS)
upload:
ssh lab neo 'cat \>f32x' <f32x
$(UPLOAD_$(TARGET))
install: $(NAME)
install -D $(NAME) $(PREFIX)/bin/$(NAME)