Added OS detection into tests to add EXE extension to test executables for cleanup. (#46)
This commit is contained in:
+8
-2
@@ -13,10 +13,16 @@ SRCS = $(SRC_DIR)/bacnet/bacdcode.c \
|
||||
$(SRC_DIR)/bacnet/whohas.c \
|
||||
ctest.c
|
||||
|
||||
TARGET = whohas
|
||||
TARGET_NAME = whohas
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TARGET_EXT = .exe
|
||||
else
|
||||
TARGET_EXT =
|
||||
endif
|
||||
TARGET = $(TARGET_NAME)$(TARGET_EXT)
|
||||
|
||||
all: ${TARGET}
|
||||
|
||||
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
${TARGET}: ${OBJS}
|
||||
|
||||
Reference in New Issue
Block a user