Commit e030f86c authored by Alessandro Rubini's avatar Alessandro Rubini

userspace/libswitchhw: cleaned up Makefile

parent 21cfbe43
include ../../Makedefs
CC=$(CROSS_COMPILE_ARM)gcc
AR=$(CROSS_COMPILE_ARM)ar
OBJS = pio.o pio_pins.o trace.o init.o fpga_io.o util.o ad9516.o fpgaboot.o minilzo/minilzo.o clkb_io.o xpoint.o hpll.o mblaster.o phy_calibration.o dmpll.o pps_gen.o watchdog.o
CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
CFLAGS = -I. -O2 -I../include -DDEBUG -I./minilzo
CFLAGS = -I. -O2 -I../include -I../include -DDEBUG -I./minilzo
OUTPUT = libswitchhw.a
OBJS = pio.o pio_pins.o trace.o init.o fpga_io.o util.o ad9516.o \
fpgaboot.o minilzo/minilzo.o clkb_io.o xpoint.o hpll.o \
mblaster.o phy_calibration.o dmpll.o pps_gen.o watchdog.o
all: $(OBJS)
${AR} rc $(OUTPUT) $(OBJS)
LIB = libswitchhw.a
%.o: %.c
${CC} -c $^ $(CFLAGS) -o $@
all: $(LIB)
install:all
scp $(OUTPUT) root@192.168.1.2:/root
$(LIB): $(OBJS)
$(AR) rc $@ $^
install: all
install -d $(WR_INSTALL_ROOT)/lib
install $(LIB) $(WR_INSTALL_ROOT)/lib
clean:
rm -f $(OUTPUT) $(OBJS)
deploy:
\ No newline at end of file
rm -f $(LIB) $(OBJS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment