Skip to content
Snippets Groups Projects
Commit 9c120cbc authored by deuce's avatar deuce
Browse files

Move -DLINK_LIST_THREADSAFE into Common.make from Common.gmake

Use -f (file) test instead of -e (exists) to locate soundcard.h since
Solaris' sh internal test apparently doesn't support -e.
parent f39c1c96
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,3 @@ endif
ifeq ($(os),linux) # Linux
XPDEV-MT_LIBS += -lpthread
endif
MT_CFLAGS += -DLINK_LIST_THREADSAFE
......@@ -5,7 +5,7 @@ XPDEV-MT_LIB = $(XPDEV_SRC)$(DIRSEP)$(LIBODIR)$(DIRSEP)$(LIBPREFIX)xpdev_mt$(LI
XPDEV_CFLAGS = -I$(XPDEV_SRC)
XPDEV_LDFLAGS = -L$(XPDEV_SRC)$(DIRSEP)$(LIBODIR)
XPDEV-MT_CFLAGS = $(XPDEV_CFLAGS)
XPDEV-MT_CFLAGS = $(XPDEV_CFLAGS) -DLINK_LIST_THREADSAFE
XPDEV-MT_LDFLAGS= $(XPDEV_LDFLAGS)
XPDEV_LIBS = $(UL_PRE)xpdev$(UL_SUF)
XPDEV-MT_LIBS = $(UL_PRE)xpdev_mt$(UL_SUF)
......@@ -6,7 +6,7 @@ ifdef XP_SEM
endif
MTOBJS += $(MTOBJODIR)$(DIRSEP)xpevent$(OFILE)
CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -e /usr/include/sys/soundcard.h ] ; then echo SYS ; elif [ -e /usr/include/soundcard.h ] ; then echo INCLUDE ; elif [ -e /usr/include/linux/soundcard.h ] ; then echo LINUX ; else echo NONE ; fi) -I.
CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo SYS ; elif [ -f /usr/include/soundcard.h ] ; then echo INCLUDE ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo LINUX ; else echo NONE ; fi) -I.
# Executable Build Rule
$(WRAPTEST): $(OBJODIR)/wraptest.o $(DEPS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment