Added OS detection into tests to add EXE extension to test executables for cleanup. (#46)
This commit is contained in:
+10
-1
@@ -22,7 +22,13 @@ SRCS = $(SRC_DIR)/bacnet/basic/binding/address.c \
|
||||
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
TARGET = address
|
||||
TARGET_NAME = address
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TARGET_EXT = .exe
|
||||
else
|
||||
TARGET_EXT =
|
||||
endif
|
||||
TARGET = $(TARGET_NAME)$(TARGET_EXT)
|
||||
|
||||
all: ${TARGET}
|
||||
|
||||
@@ -39,4 +45,7 @@ depend:
|
||||
clean:
|
||||
rm -rf ${TARGET} $(OBJS)
|
||||
|
||||
test:
|
||||
./${TARGET}
|
||||
|
||||
include: .depend
|
||||
|
||||
Reference in New Issue
Block a user