fixed makefile for example

git-svn-id: svn://kolibrios.org@6463 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Serhii Sakhno 2016-07-21 20:05:36 +00:00
parent 0179d69549
commit 1d995e8c33

View File

@ -6,9 +6,7 @@ SDK_DIR:= $(abspath ../../../sdk)
CLAYER:= $(abspath ../../) CLAYER:= $(abspath ../../)
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds \ LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds \
--image-base 0 -lgcc /home/autobuild/tools/win32/lib/libdll.a\ --image-base 0 -lgcc -ldll -lc.dll -lapp
/home/autobuild/tools/win32/lib/libc.dll.a\
/home/autobuild/tools/win32/lib/libapp.a
CFLAGS = -g -U_Win32 -U_WIN32 -U__MINGW32__ CFLAGS = -g -U_Win32 -U_WIN32 -U__MINGW32__
@ -24,7 +22,7 @@ OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
all:$(NAME) all:$(NAME)
$(NAME): $(OBJECTS) Makefile $(NAME): $(OBJECTS) Makefile
$(LD) $(LIBPATH) -o $@ $(OBJECTS) $(OBJPATH)/loadboxlib.obj $(LDFLAGS) $(LD) $(LIBPATH) --subsystem native -o $@ $(OBJECTS) $(OBJPATH)/loadboxlib.obj $(LDFLAGS)
#-ldll -lc.dll -lapp -Map $(NAME).map #-ldll -lc.dll -lapp -Map $(NAME).map
kos32-objcopy $@ -O binary kos32-objcopy $@ -O binary