18 lines
357 B
Makefile
18 lines
357 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)
|
||
|
|
||
|
all: ${BIN_STRM_DDR2}
|
||
|
|
||
|
${BIN_STRM_DDR2}: ${OBJ_STRM_DDR2}
|
||
|
${LD} ${LDFLAGS} $^ -o $@ ${LDFLAGS_POST}
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o ${BIN_STRM_DDR2}
|