diff libmpdvdkit2/Makefile @ 16714:2ab52c9b72b9

Replace unconditional #defines by build system trickery. This reduces our local diff considerably.
author diego
date Sun, 09 Oct 2005 10:18:24 +0000
parents 117708385e35
children e2b0c2841643
line wrap: on
line diff
--- a/libmpdvdkit2/Makefile	Sun Oct 09 09:53:27 2005 +0000
+++ b/libmpdvdkit2/Makefile	Sun Oct 09 10:18:24 2005 +0000
@@ -36,7 +36,12 @@
 # -funroll-loops  removed, triggered gcc 3.0.4 (3.x?) bug
 CFLAGS= -I. $(OPTFLAGS) $(EXTRA_INC)\
 	-DSYS_LINUX -D__USE_UNIX98 -D_REENTRANT -D_GNU_SOURCE \
-	-DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS
+	-DHAVE_DVDCSS_DVDCSS_H -DSTDC_HEADERS -DHAVE_LIMITS_H \
+	-DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
+
+ifeq ($(TARGET_OS),CYGWIN)
+CFLAGS+=-DSYS_CYGWIN
+endif
 
 .c.o:
 	$(CC) $(CFLAGS) -c -o $@ $<