Rev 8215 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8215 | maxcodehac | 1 | CC = kos32-gcc |
2 | LD = kos32-ld |
||
3 | |||
4 | SDK_DIR = ../../../ |
||
5 | LDFLAGS = -nostdlib -static --image-base 0 -T $(SDK_DIR)/sources/newlib/app.lds |
||
6 | |||
7 | CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
||
8 | |||
9 | INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I ../include/ |
||
10 | LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
||
11 | |||
12 | default: fire |
||
13 | |||
14 | fire: $(OBJECTS) Makefile |
||
15 | $(CC) $(CFLAGS) $(INCLUDES) -o sdltest.o sdltest.c |
||
16 | $(CC) $(CFLAGS) $(INCLUDES) -o testbitmap.o testbitmap.c |
||
9172 | turbocat | 17 | $(LD) $(LDFLAGS) $(LIBPATH) --subsystem native -o sdltest sdltest.o -lgcc -lSDLn -lc.dll -lsound |
18 | $(LD) $(LDFLAGS) $(LIBPATH) --subsystem native -o testbitmap testbitmap.o -lgcc -lSDLn -lc.dll -lsound |
||
8215 | maxcodehac | 19 | kos32-strip -s sdltest -o sdltest |
20 | kos32-strip -s testbitmap -o testbitmap |
||
21 | objcopy testbitmap -O binary |
||
22 | objcopy sdltest -O binary |
||
23 | rm testbitmap.o |
||
24 | rm sdltest.o |
||
25 | clean: |
||
26 | rm testbitmap |
||
27 | rm sdltest |