summaryrefslogtreecommitdiff
path: root/libc/pwd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd/Makefile')
-rw-r--r--libc/pwd/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/pwd/Makefile b/libc/pwd/Makefile
index a31ac02..eb4b844 100644
--- a/libc/pwd/Makefile
+++ b/libc/pwd/Makefile
@@ -5,14 +5,18 @@
TOP=..
include $(TOP)/Make.defs
-ifeq ($(PLATFORM),i386-Linux)
+ifeq ($(PLATFORM),i386-ELKS)
CFLAGS+=$(WALL)
-else # ifeq ($(PLATFORM),i86-ELKS)
+else
CFLAGS=$(CCFLAGS) $(LIBDEFS) -ansi
endif
PSRC=__getpwent.c pwent.c getpwnam.c getpwuid.c putpwent.c getpw.c fgetpwent.c
+ifeq ($(LIB_OS),ELKS)
POBJ=__getpwent.o pwent.o getpwnam.o getpwuid.o putpwent.o getpw.o fgetpwent.o
+else
+POBJ=
+endif
all: $(POBJ)