fixed makefile for example
git-svn-id: svn://kolibrios.org@6463 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0179d69549
commit
1d995e8c33
@ -6,9 +6,7 @@ SDK_DIR:= $(abspath ../../../sdk)
|
||||
CLAYER:= $(abspath ../../)
|
||||
|
||||
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
|
||||
--image-base 0 -lgcc -ldll -lc.dll -lapp
|
||||
|
||||
CFLAGS = -g -U_Win32 -U_WIN32 -U__MINGW32__
|
||||
|
||||
@ -24,7 +22,7 @@ OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
||||
all:$(NAME)
|
||||
|
||||
$(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
|
||||
kos32-objcopy $@ -O binary
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user