Rev 8226 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8226 | Rev 8385 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | CC = kos32-gcc |
|
- | 2 | LD = kos32-ld |
|
- | 3 | ||
- | 4 | SDK_DIR = $(abspath ../../../contrib/sdk) |
|
- | 5 | ||
- | 6 | CFLAGS = -c -fno-ident -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 |
|
- | 7 | LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0 |
|
- | 8 | ||
- | 9 | INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include |
|
- | 10 | LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib |
|
- | 11 | ||
- | 12 | default: |
|
- | 13 | $(CC) $(CFLAGS) -O2 $(INCLUDES) getline.c |
|
- | 14 | $(CC) $(CFLAGS) -O2 $(INCLUDES) -DGCC_BUILD tte.c |
|
- | 15 | $(CC) $(CFLAGS) -O0 $(INCLUDES) notify.c |
|
- | 16 | kos32-ld $(LDFLAGS) $(LIBPATH) --subsystem native -o tte getline.o tte.o notify.o -lgcc -lc.dll |
|
- | 17 | objcopy tte -O binary |
|
- | 18 | ||
1 | tte: |
19 | TCC: |
2 | wine kos32-tcc.exe tte.c getline.c -lck -o tte |
20 | kos32-tcc -DTCC_BUILD tte.c getline.c notify.c -lck -o tte -I ../../develop/ktcc/trunk/libc/include |
- | 21 | ||
- | 22 | clean: |
|
- | 23 | rm *.o |