diff --git a/programs/develop/ktcc/trunk/source/Makefile.kos32 b/programs/develop/ktcc/trunk/source/Makefile.kos32 index fb3f286a61..886ed948d4 100644 --- a/programs/develop/ktcc/trunk/source/Makefile.kos32 +++ b/programs/develop/ktcc/trunk/source/Makefile.kos32 @@ -7,13 +7,13 @@ SDK_DIR:= $(abspath ../../../../../contrib/sdk) #LDFLAGS = -static -nostdlib -T $(SDK_DIR)/sources/newlib/static.lds -LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/lib/app-dynamic.lds \ +LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds \ --image-base 0 CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include -LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib +LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib -L $(LIB_DIR) SOURCES = tcc.c \ libtcc.c \ @@ -32,3 +32,9 @@ tcc: $(OBJECTS) %.o : %.c $(SOURCES) $(CC) $(CFLAGS) $(INCLUDES) -o $@ $< +install: + kpack tcc + cp tcc ../bin/tcc + +clean: + rm -f tcc *.o