Subversion Repositories Kolibri OS

Rev

Rev 8616 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8616 Rev 8617
1
CC = kos32-gcc
1
CC = kos32-gcc
2
LD = kos32-ld
2
LD = kos32-ld
3
 
3
 
4
SDK_DIR = $(abspath ../../../contrib/sdk)
4
SDK_DIR = $(abspath ../../../contrib/sdk)
5
 
5
 
6
CFLAGS = -c -fno-ident -Os -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Dunix
6
CFLAGS = -c -fno-ident -Os -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -Dunix
7
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0
7
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0
8
 
8
 
9
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/zlib
9
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I $(SDK_DIR)/sources/zlib
10
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
10
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
11
 
11
 
12
OBJECTS = miniunz.o unzip.o ioapi.o kos_dir.o
12
OBJECTS = miniunz.o unzip.o ioapi.o kos_dir.o
13
 
13
 
14
default: $(OBJECTS)
14
default: $(OBJECTS)
15
	kos32-ld $(LDFLAGS) $(LIBPATH) --subsystem console -o miniunz $(OBJECTS) -lgcc -lc.dll -lz
15
	kos32-ld $(LDFLAGS) $(LIBPATH) --subsystem console -o miniunz $(OBJECTS) -lgcc -lc.dll -lz.dll
16
	objcopy miniunz -O binary
16
	objcopy miniunz -O binary
17
 
17
 
18
%.o : %.c Makefile.miniunz
18
%.o : %.c Makefile.miniunz
19
	$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
19
	$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
20
 
20
 
21
clean:
21
clean:
22
	rm *.o
22
	rm *.o
23
 
23
 
24
clean:
24
clean:
25
>
25
>