add target for building ordinals.h
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 3 Jul 2001 04:36:33 +0000 (04:36 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 3 Jul 2001 04:36:33 +0000 (04:36 +0000)
src/libFLAC/Makefile.vc

index b29cc2b..c8e8d39 100644 (file)
@@ -52,7 +52,11 @@ NASM_FILES= \
 \r
 OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)\r
 \r
-all: libFLAC.lib\r
+all: ordinals libFLAC.lib\r
+\r
+ordinals: ../../include/FLAC/ordinals.h\r
+../../include/FLAC/ordinals.h: ../../include/FLAC/ordinals.h.in\r
+       sed -e 's/@FLaC__SIZE16@/short/g' -e 's/@FLaC__SIZE32@/int/g' -e 's/@FLaC__SIZE64@/long long/g' -e 's/@FLaC__USIZE16@/unsigned short/g' -e 's/@FLaC__USIZE32@/unsigned int/g' -e 's/@FLaC__USIZE64@/unsigned long long/g' ../../include/FLAC/ordinals.h.in > ../../include/FLAC/ordinals.h\r
 \r
 libFLAC.lib: $(OBJS)\r
        link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)\r