You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
715 B
Makefile

include $(GNUSTEP_MAKEFILES)/common.make
LIBRARY_NAME = toydispatch
toydispatch_VERSION = 1
toydispatch_C_FILES = \
toydispatch.c
toydispatch_HEADER_FILES_INSTALL_DIR = toydispatch
toydispatch_HEADER_FILES = \
toydispatch.h
toydispatch_LIBRARIES_DEPEND_UPON += -lpthread
toydispatch_CFLAGS += -Werror -std=c99
ifneq ($(findstring gcc, $(CC)),)
# Hack to get the __sync_* GCC builtins to work with GCC
ifeq ($(GNUSTEP_TARGET_CPU), ix86)
toydispatch_CFLAGS += -march=i586
endif
endif
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
# Hack to get mingw to provide declaration for strdup (since it is non-standard)
toydispatch_CPPFLAGS += -U__STRICT_ANSI__
endif
include $(GNUSTEP_MAKEFILES)/library.make