fx2/linux/apps/Makefile

26 lines
577 B
Makefile

CC = gcc
LD = gcc
CFLAGS = -Wall -Werror -c -I../libstrm -O2
LDFLAGS = -L../libstrm
LDFLAGS_POST = -lstrm -lusb
BIN_STRM_DDR2 = strm_ddr2
SRC_STRM_DDR2 = strm_ddr2.c
OBJ_STRM_DDR2 = $(SRC_STRM_DDR2:%.c=%.o)
BIN_STRM_REGFILE = strm_regfile
SRC_STRM_REGFILE = strm_regfile.c
OBJ_STRM_REGFILE = $(SRC_STRM_REGFILE:%.c=%.o)
all: ${BIN_STRM_DDR2} ${BIN_STRM_REGFILE}
${BIN_STRM_DDR2}: ${OBJ_STRM_DDR2}
${LD} ${LDFLAGS} $^ -o $@ ${LDFLAGS_POST}
${BIN_STRM_REGFILE}: ${OBJ_STRM_REGFILE}
${LD} ${LDFLAGS} $^ -o $@ ${LDFLAGS_POST}
clean:
rm -f *.o ${BIN_STRM_DDR2}