aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/winnt/libgcc.mak
blob: adfb57e63cc8056e05c929509ad048fc446106e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Build libgcc.a

libgcc.lib : libgcc1.c libgcc2.c mklibgcc.exe
	mklibgcc -c
	mklibgcc "cl -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES)" libgcc1.c $(LIB1FUNCS)
	mklibgcc "xgcc -B./ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES)" libgcc2.c $(LIB2FUNCS)
	mklibnow.bat
	-del libgcc.lib
	lib -verbose -out:libgcc.lib lgcctmp/*.obj

mklibgcc.obj : $(srcdir)/config/winnt/mklibgcc.c
	cl -I. -I$(srcdir) -I$(srcdir)/config/winnt -c $(srcdir)/config/winnt/mklibgcc.c

dirent.obj : $(srcdir)/config/winnt/dirent.c stmp-int-hdrs
	cl -I. -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/config/winnt -c $(srcdir)/config/winnt/dirent.c

mklibgcc.exe : mklibgcc.obj dirent.obj
	cl mklibgcc.obj dirent.obj libc.lib kernel32.lib