]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/dl/ext/libogg/common.mak
refresh wwww
[16.git] / src / lib / dl / ext / libogg / common.mak
diff --git a/src/lib/dl/ext/libogg/common.mak b/src/lib/dl/ext/libogg/common.mak
new file mode 100755 (executable)
index 0000000..d51e89b
--- /dev/null
@@ -0,0 +1,29 @@
+# this makefile is included from all the dos*.mak files, do not use directly
+# NTS: HPS is either \ (DOS) or / (Linux)
+NOW_BUILDING = EXT_LIBOGG_LIB
+CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS).. -dHAVE_CONFIG_H
+
+OBJS = $(SUBDIR)$(HPS)bitwise.obj $(SUBDIR)$(HPS)framing.obj
+
+!ifdef EXT_LIBOGG_LIB
+$(EXT_LIBOGG_LIB): $(OBJS)
+       wlib -q -b -c $(EXT_LIBOGG_LIB) -+$(SUBDIR)$(HPS)bitwise.obj -+$(SUBDIR)$(HPS)framing.obj
+!endif
+
+# NTS we have to construct the command line into tmp.cmd because for MS-DOS
+# systems all arguments would exceed the pitiful 128 char command line limit
+.C.OBJ:
+       %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
+       @$(CC) @tmp.cmd
+
+all: lib exe .symbolic
+       
+lib: $(EXT_LIBOGG_LIB) .symbolic
+
+exe: .symbolic
+
+clean: .SYMBOLIC
+          del $(SUBDIR)$(HPS)*.obj
+          del tmp.cmd
+          @echo Cleaning done
+