forked from KolibriOS/kolibrios
5499415dbf
git-svn-id: svn://kolibrios.org@6525 a494cfbc-eb01-0410-851d-a64ba20cac60
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
NAME=boardmsg
|
|
CC = kos32-gcc
|
|
LD = kos32-ld
|
|
|
|
SDK_DIR:= $(abspath ../../../sdk)
|
|
CLAYER:= $(abspath ../../)
|
|
|
|
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds \
|
|
--image-base 0 -lgcc -ldll -lc.dll -lapp
|
|
|
|
CFLAGS = -g -U_Win32 -U_WIN32 -U__MINGW32__
|
|
|
|
INCLUDES= -I. -I$(SDK_DIR)/sources/newlib/libc/include -I$(CLAYER)/INCLUDE
|
|
LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
|
|
|
|
OBJPATH = $(CLAYER)/OBJ
|
|
|
|
SOURCES = boardmsg.c option_menu.c
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
all: boardmsg option_menu scroll_progress dbutton_files
|
|
|
|
scroll_progress: scroll_progress.o
|
|
# $(LD) $(LIBPATH) --subsystem native -o $@ $^ $(OBJPATH)/loadboxlib.obj $(LDFLAGS)
|
|
$(LD) $(LIBPATH) --subsystem windows -o $@ $^ $(OBJPATH)/loadboxlib.obj $(LDFLAGS)
|
|
kos32-objcopy $@ -O binary
|
|
|
|
|
|
option_menu: option_menu.o
|
|
$(LD) $(LIBPATH) --subsystem native -o $@ $^ $(OBJPATH)/loadboxlib.obj $(LDFLAGS)
|
|
kos32-objcopy $@ -O binary
|
|
|
|
boardmsg: boardmsg.o
|
|
$(LD) $(LIBPATH) --subsystem native -o $@ $^ $(OBJPATH)/loadboxlib.obj $(LDFLAGS)
|
|
kos32-objcopy $@ -O binary
|
|
|
|
dbutton_files: dbutton_files.o
|
|
$(LD) $(LIBPATH) --subsystem native -o $@ $^ $(OBJPATH)/loadboxlib.obj $(OBJPATH)/loadproclib.obj $(OBJPATH)/loadlibimg.obj $(LDFLAGS)
|
|
kos32-objcopy $@ -O binary
|
|
|
|
%.o : %.c Makefile
|
|
$(CC) -c $(INCLUDES) $(CFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
-rm -f *.o
|