mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-14 02:47:07 +03:00
38cd3c4ee4
git-svn-id: svn://kolibrios.org@6456 a494cfbc-eb01-0410-851d-a64ba20cac60
38 lines
903 B
Plaintext
38 lines
903 B
Plaintext
NAME=boardmsg
|
|
CC = kos32-gcc
|
|
LD = kos32-ld
|
|
FASM=fasm
|
|
|
|
SDK_DIR:= $(abspath ../../sdk)
|
|
|
|
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds \
|
|
--image-base 0 -lgcc /home/autobuild/tools/win32/lib/libdll.a\
|
|
/home/autobuild/tools/win32/lib/libc.dll.a\
|
|
/home/autobuild/tools/win32/lib/libapp.a
|
|
|
|
CFLAGS = -g -U_Win32 -U_WIN32 -U__MINGW32__
|
|
|
|
INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include
|
|
LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
|
|
|
|
|
|
SOURCES = loadboxlib.asm boardmsg.c
|
|
|
|
OBJECTS = $(patsubst %.asm, %.obj, $(patsubst %.c, %.o, $(SOURCES)))
|
|
|
|
all:$(NAME)
|
|
|
|
$(NAME): $(OBJECTS) Makefile
|
|
$(LD) $(LIBPATH) -o $@ $(OBJECTS) $(LDFLAGS)
|
|
# -ldll -lapp -lc.dll -lgcc -Map $(NAME).map
|
|
kos32-objcopy $@ -O binary
|
|
|
|
%.o : %.c Makefile
|
|
$(CC) -c $(INCLUDES) $(CFLAGS) -o $@ $<
|
|
|
|
%.obj : %.asm Makefile
|
|
$(FASM) $< $@
|
|
|
|
clean:
|
|
-rm -f *.o *.obj
|