Menu

[39a9d1]: / build.c  Maximize  Restore  History

Download this file

25 lines (21 with data), 443 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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;
}