summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/gmake/compiler.mk4
-rw-r--r--makefiles/gmake/depend.mk2
2 files changed, 3 insertions, 3 deletions
diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk
index 1440419..6cd4af9 100644
--- a/makefiles/gmake/compiler.mk
+++ b/makefiles/gmake/compiler.mk
@@ -255,9 +255,9 @@ endif
ifeq "$(COMPILER)" "pcc"
ifeq "$(PLATFORM)" "LINUX"
-PTHREADS_CFLAGS = -D_REENTRANT
+PTHREADS_CFLAGS = -D_REENTRANT -pthread
PTHREADS_LDFLAGS =
-PTHREADS_LIBS = -lpthread
+PTHREADS_LIBS = -pthread
endif
endif
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk
index 8b22c2e..eb832e7 100644
--- a/makefiles/gmake/depend.mk
+++ b/makefiles/gmake/depend.mk
@@ -64,7 +64,7 @@ ifeq "$(COMPILER)" "pcc"
# FIXME: platform in path of compiler include files, mmh, how to fix?
%.d : %.c
@echo Generating dependencies for $<
- @makedepend -DMAKE_DEPENDENCIES $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) -I/usr/lib/pcc/i686-pc-linux-gnu/0.9.9/include -f - $< > $@
+ @$(CC) -DMAKE_DEPENDENCIES $(CFLAGS) -M $< > $@
endif