Commit 4b970ba3 authored by deuce's avatar deuce
Browse files

Only add xpsem to OBJS automatically if NEED_THREADS is defined

New PTHREAD_OBJS macro.
parent a12abbdb
......@@ -125,11 +125,6 @@ else
endif
endif
ifdef NEED_THREADS
CFLAGS += $(PTHREAD_CFLAGS)
LDFLAGS += $(PTHREAD_LDFLAGS)
endif
ifdef DEBUG
CFLAGS += -ggdb
CFLAGS += -D_DEBUG
......@@ -150,7 +145,13 @@ ifdef NEED_UIFC
OBJS += $(UIFC_OBJS)
endif
ifdef XP_SEM
OBJS += $(LIBODIR)$(SLASH)xpsem.$(OFILE)
PTHREAD_OBJS += $(LIBODIR)$(SLASH)xpsem.$(OFILE)
endif
ifdef NEED_THREADS
CFLAGS += $(PTHREAD_CFLAGS)
LDFLAGS += $(PTHREAD_LDFLAGS)
OBJS += $(PTHREAD_OBJS)
endif
depend:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment