Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment