chiark / gitweb /
[PATCH] avoid building klibc test programs and pass SUBDIRS= to klibc clean
[elogind.git] / klibc / klibc / MCONFIG
index 253a9461b7289edbe74e43f430308014ad3afec3..499b6e8b5649a8275eb9dba96e50a2e61cf6ffd2 100644 (file)
@@ -8,6 +8,11 @@ include ../MCONFIG
 include ../MRULES
 
 WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
-CFLAGS  = -Wp,-MD,$(dir $*).$(notdir $*).d $(OPTFLAGS) $(REQFLAGS) $(WARNFLAGS)
+
+ifeq ($(ERRLIST),1)
+REQFLAGS += -DWITH_ERRLIST
+endif
+
+CFLAGS  = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d $(OPTFLAGS) $(REQFLAGS) $(WARNFLAGS)
 
 SOFLAGS = -fPIC