forked from KolibriOS/kolibrios
Rustem Gimadutdinov (rgimad)
748c187814
nothing new since january just upload so all devs can participate. git-svn-id: svn://kolibrios.org@8774 a494cfbc-eb01-0410-851d-a64ba20cac60
24 lines
706 B
Makefile
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)
|