]> gitweb.factorcode.org Git - factor.git/blob - Makefile.win32
update makefile, remove VC project
[factor.git] / Makefile.win32
1 CC = gcc
2 DEFAULT_CFLAGS = -Wall -Os -fomit-frame-pointer $(SITE_CFLAGS)
3 DEFAULT_LIBS = -lm
4
5 STRIP = strip
6
7 WIN32_OBJS = native\win32\ffi.o native\win32\file.o native\win32\io.o \
8         native\win32\misc.o native\win32\read.o native\win32\write.o \
9         native\win32\run.o
10
11 OBJS = $(WIN32_OBJS) native\arithmetic.o native\array.o native\bignum.o \
12         native\s48_bignum.o \
13         native\complex.o native\cons.o native\error.o \
14         native\factor.o native\fixnum.o \
15         native\float.o native\gc.o \
16         native\image.o native\memory.o \
17         native\misc.o native\port.o native\primitives.o \
18         native\ratio.o native\relocate.o \
19         native\run.o \
20         native\sbuf.o native\stack.o \
21         native\string.o native\types.o native\vector.o \
22         native\word.o native\compiler.o \
23         native\ffi.o native\boolean.o \
24         native\debug.o \
25         native\hashtable.o
26
27 default:
28         @echo "Run 'make' with one of the following parameters:"
29         @echo ""
30         @echo "windows"
31         @echo ""
32         @echo "Also, you might want to set the SITE_CFLAGS environment"
33         @echo "variable to enable some CPU-specific optimizations; this"
34         @echo "can make a huge difference. Eg:"
35         @echo ""
36         @echo "export SITE_CFLAGS=\"-march=pentium4 -ffast-math\""
37
38 windows:
39         $(MAKE) -f Makefile.win32 f \
40                 CFLAGS="$(DEFAULT_CFLAGS) -DFFI -DWIN32" \
41                 LIBS="$(DEFAULT_LIBS)" 
42
43 f: $(OBJS)
44         $(CC) $(LIBS) $(CFLAGS) -o $@ $(OBJS)
45         $(STRIP) $@
46
47 clean:
48         del $(OBJS)
49
50 .c.o:
51         $(CC) -c $(CFLAGS) -o $@ $<
52