2021-04-27 19:33:31 +03:00
|
|
|
|
2021-06-11 01:27:24 +03:00
|
|
|
KTCC=kos32-tcc
|
2021-05-10 01:12:43 +03:00
|
|
|
FASM= fasm
|
2021-04-27 19:33:31 +03:00
|
|
|
KPACK = kpack
|
|
|
|
CFLAGS = -I../include
|
2021-06-11 01:27:24 +03:00
|
|
|
LDFLAGS = -nostdlib -L../../bin/lib ../../bin/lib/crt0.o
|
2021-04-27 19:33:31 +03:00
|
|
|
|
|
|
|
BIN= stdio_test.kex \
|
|
|
|
basic_gui.kex \
|
|
|
|
http_tcp_demo.kex \
|
|
|
|
math_test.kex \
|
|
|
|
string_test.kex \
|
|
|
|
whois.kex \
|
|
|
|
file_io.kex \
|
2021-05-01 01:00:07 +03:00
|
|
|
tmpdisk_work.kex \
|
2021-06-11 01:27:24 +03:00
|
|
|
consoleio.kex \
|
|
|
|
fasm/sprintf_test.kex \
|
|
|
|
clayer/rasterworks.kex \
|
|
|
|
clayer/libimg.kex \
|
|
|
|
clayer/dialog.kex \
|
|
|
|
clayer/msgbox.kex \
|
|
|
|
clayer/boxlib.kex
|
|
|
|
|
|
|
|
LIBS= -ltcc -ldialog -lrasterworks -limg -lbox -lmsgbox -lnetwork -lc.obj
|
2021-04-27 19:33:31 +03:00
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
|
|
|
|
%.kex : %.c
|
2021-06-11 01:27:24 +03:00
|
|
|
$(KTCC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LIBS)
|
2021-05-10 01:12:43 +03:00
|
|
|
$(KPACK) --nologo $@
|
|
|
|
|
|
|
|
%.kex : %.asm
|
|
|
|
$(FASM) $< $@
|
2021-04-27 19:33:31 +03:00
|
|
|
$(KPACK) --nologo $@
|
|
|
|
|
|
|
|
clean:
|
2021-06-11 01:27:24 +03:00
|
|
|
rm *.kex clayer/*.kex
|