2022-01-12 19:09:37 +01:00
|
|
|
KTCC = kos32-tcc
|
|
|
|
FASM = fasm
|
2021-04-27 18:33:31 +02:00
|
|
|
KPACK = kpack
|
2022-01-02 13:16:17 +01:00
|
|
|
|
2022-01-12 19:09:37 +01:00
|
|
|
CFLAGS = -I../include -B../../kx -I../../../../../../contrib/sdk/sources/SDL-1.2.2_newlib/include
|
|
|
|
LIBS = -lbox_lib -lshell -lSDL -lsound -lnetwork -lrasterworks -limg -ldialog -lmsgbox
|
2021-04-27 18:33:31 +02:00
|
|
|
|
2022-01-12 19:09:37 +01:00
|
|
|
BIN = stdio_test.kex \
|
|
|
|
basic_gui.kex \
|
|
|
|
http_tcp_demo.kex \
|
|
|
|
math_test.kex \
|
|
|
|
string_test.kex \
|
|
|
|
whois.kex \
|
|
|
|
file_io.kex \
|
|
|
|
tmpdisk_work.kex \
|
|
|
|
consoleio.kex \
|
|
|
|
assert_test.kex \
|
|
|
|
clayer/rasterworks.kex \
|
|
|
|
clayer/libimg.kex \
|
|
|
|
clayer/dialog.kex \
|
|
|
|
clayer/msgbox.kex \
|
|
|
|
clayer/boxlib.kex \
|
|
|
|
thread_work.kex \
|
|
|
|
sdltest.kex \
|
|
|
|
shell_test.kex \
|
|
|
|
libc_test.kex \
|
|
|
|
defgen.kex
|
|
|
|
|
2021-04-27 18:33:31 +02:00
|
|
|
all: $(BIN)
|
|
|
|
|
|
|
|
%.kex : %.c
|
2021-06-11 00:27:24 +02:00
|
|
|
$(KTCC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LIBS)
|
2021-05-10 00:12:43 +02:00
|
|
|
$(KPACK) --nologo $@
|
2022-01-12 19:09:37 +01:00
|
|
|
|
2022-01-02 13:16:17 +01:00
|
|
|
%.kex : %.asm
|
2021-05-10 00:12:43 +02:00
|
|
|
$(FASM) $< $@
|
2021-04-27 18:33:31 +02:00
|
|
|
$(KPACK) --nologo $@
|
2022-01-12 19:09:37 +01:00
|
|
|
|
2021-04-27 18:33:31 +02:00
|
|
|
clean:
|
2021-06-11 00:27:24 +02:00
|
|
|
rm *.kex clayer/*.kex
|