#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
int main(int argc, char **argv)
{
/*
if (argc < 2)
{
printf("usage: build.exe <inputfile>\n");
return -1;
}
*/
system("yasm.exe -U INCLUDE_BIN -o z.exe z.asm");
system("gzip -9 < z.exe > tmp.$$$.gz");
system("yasm -D INCLUDE_BIN -o z.exe z.asm");
system("del tmp.$$$.gz");
return 0;
}