Files
bacnet_stack/bacnet-stack/npdu.mak
T

38 lines
603 B
Makefile

#Makefile to build test case
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_NPDU -g
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
npdu.c \
apdu.c \
dcc.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = npdu
all: ${TARGET}
${TARGET}: ${OBJS}
${CC} -o $@ ${OBJS}
.c.o:
${CC} -c ${CFLAGS} $*.c -o $@
depend:
rm -f .depend
${CC} -MM ${CFLAGS} *.c >> .depend
clean:
rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini
include: .depend