1
0
mirror of https://github.com/stargieg/bacnet-stack synced 2025-10-26 23:35:52 +08:00
bacnet-stack/test/vmac.mak

33 lines
533 B
Makefile

#Makefile to build test case
CC = gcc
SRC_DIR = ../src
INCLUDES = -I../include -I.
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_VMAC
CFLAGS = -Wall -Wmissing-prototypes $(INCLUDES) $(DEFINES) -g
SRCS = $(SRC_DIR)/keylist.c \
$(SRC_DIR)/vmac.c \
ctest.c
TARGET = vmac
all: ${TARGET}
OBJS = ${SRCS:.c=.o}
${TARGET}: ${OBJS}
${CC} -o $@ ${OBJS}
.c.o:
${CC} -c ${CFLAGS} $*.c -o $@
depend:
rm -f .depend
${CC} -MM ${CFLAGS} *.c >> .depend
clean:
rm -rf ${TARGET} $(OBJS)
include: .depend