kolibrios-gitea/programs/develop/libraries/kos_mbedtls/kosnet/sample/Makefile
Rustem Gimadutdinov (rgimad) 748c187814 Upload MbedTLS port
nothing new since january
just upload so all devs can participate.

git-svn-id: svn://kolibrios.org@8774 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-06 20:21:28 +00:00

24 lines
706 B
Makefile

NEWLIB_INCLUDES=D:\KOSSDK\newlib\libc\include
APP_DYNAMIC_LDS=D:\KOSSDK\newlib/app-dynamic.lds
LIBDIR=D:\KOSSDK\kos32-msys-5.4.0\win32\lib
MAIN_TARGET=libkosnet_demo
CC=kos32-gcc
LD=kos32-ld
OBJCOPY=kos32-objcopy
CCFLAGS=-c -fomit-frame-pointer -I $(NEWLIB_INCLUDES) -I../include -Wall -Wextra
LDFLAGS=-call_shared -nostdlib --subsystem console -T $(APP_DYNAMIC_LDS) --image-base 0 -L $(LIBDIR) -L ../ -lkosnet -lgcc -lapp -lc.dll
all: libkosnet_demo
libkosnet_demo: libkosnet_demo.o
$(LD) libkosnet_demo.o -o $(MAIN_TARGET) $(LDFLAGS)
$(OBJCOPY) $(MAIN_TARGET) -O binary
libkosnet_demo.o: libkosnet_demo.c
$(CC) $(CCFLAGS) libkosnet_demo.c -o libkosnet_demo.o
clean:
del *.o
del $(MAIN_TARGET)