From: Alexis Laferrière Date: Tue, 1 Sep 2015 18:00:26 +0000 (-0400) Subject: contrib/objcwrapper: update Makefile to use the included preprocessing X-Git-Tag: v0.7.8~42^2~10 X-Git-Url: http://nitlanguage.org contrib/objcwrapper: update Makefile to use the included preprocessing Signed-off-by: Alexis Laferrière --- diff --git a/contrib/objcwrapper/Makefile b/contrib/objcwrapper/Makefile index 4fcfa3b..5976a83 100644 --- a/contrib/objcwrapper/Makefile +++ b/contrib/objcwrapper/Makefile @@ -1,4 +1,4 @@ -all: bin/objcwrapper bin/header_static +all: bin/objcwrapper ../nitcc/src/nitcc: make -C ../nitcc @@ -23,25 +23,16 @@ check: bin/objc_test_parser bin/objcwrapper ../../bin/nitpick tests/MyClass.nit # Test on classes of libgnustep-base-dev -check-gnustep: bin/objcwrapper bin/header_static - gcc -E /usr/include/GNUstep/Foundation/NSArray.h -I /usr/include/GNUstep/ -Wno-deprecated \ - | ../header_keeper/bin/header_keeper /usr/include/GNUstep/Foundation/NSArray.h \ - | bin/header_static > tests/NSArray.pre.h - bin/objcwrapper tests/NSArray.pre.h -o tests/nsarray.nit +check-gnustep: bin/objcwrapper + bin/objcwrapper /usr/include/GNUstep/Foundation/NSArray.h -o tests/nsarray.nit -p "-I /usr/include/GNUstep/ -Wno-deprecated" ../../bin/nitpick tests/nsarray.nit # Test on classes of the Apple Foundation framework -check-apple: bin/objcwrapper bin/header_static - gcc -E /System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h \ - | ../header_keeper/bin/header_keeper /System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h \ - | bin/header_static > tests/NSArray.pre.h - bin/objcwrapper tests/NSArray.pre.h -o tests/nsarray.nit +check-apple: bin/objcwrapper + bin/objcwrapper /System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h -o tests/nsarray.nit ../../bin/nitpick tests/nsarray.nit - gcc -E /System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h \ - | ../header_keeper/bin/header_keeper NSAlert.h \ - | bin/header_static > tests/NSAlert.pre.h - bin/objcwrapper tests/NSAlert.pre.h -o tests/nsalert.nit + bin/objcwrapper /System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h -o tests/nsalert.nit ../../bin/nitpick tests/nsalert.nit bin/header_static: $(shell ../../bin/nitls -M src/header_static.nit)