tinyscheme_genesi... 1 # Makefile for TinyScheme
tinyscheme_genesi... 2 # Time-stamp: <2002-06-24 14:13:27 gildea>
tinyscheme_genesi... 3
tinyscheme_genesi... 4 # Windows/2000
tinyscheme_genesi... 5 #CC = cl -nologo
tinyscheme_genesi... 6 #DEBUG= -W3 -Z7 -MD
tinyscheme_genesi... 7 #DL_FLAGS=
tinyscheme_genesi... 8 #SYS_LIBS=
tinyscheme_genesi... 9 #Osuf=obj
tinyscheme_genesi... 10 #SOsuf=dll
tinyscheme_genesi... 11 #LIBsuf=.lib
tinyscheme_genesi... 12 #EXE_EXT=.exe
tinyscheme_genesi... 13 #LD = link -nologo
tinyscheme_genesi... 14 #LDFLAGS = -debug -map -dll -incremental:no
tinyscheme_genesi... 15 #LIBPREFIX =
tinyscheme_genesi... 16 #OUT = -out:$@
tinyscheme_genesi... 17 #RM= -del
tinyscheme_genesi... 18 #AR= echo
tinyscheme_genesi... 19
tinyscheme_genesi... 20 # Unix, generally
tinyscheme_genesi... 21 CC = gcc -fpic -pedantic
tinyscheme_genesi... 22 DEBUG=-g -Wall -Wno-char-subscripts -O
tinyscheme_genesi... 23 Osuf=o
tinyscheme_genesi... 24 SOsuf=so
tinyscheme_genesi... 25 LIBsuf=a
tinyscheme_genesi... 26 EXE_EXT=
tinyscheme_genesi... 27 LIBPREFIX=lib
tinyscheme_genesi... 28 OUT = -o $@
tinyscheme_genesi... 29 RM= -rm -f
tinyscheme_genesi... 30 AR= ar crs
tinyscheme_genesi... 31
tinyscheme_genesi... 32 # Linux
tinyscheme_genesi... 33 LD = gcc
tinyscheme_genesi... 34 LDFLAGS = -shared
tinyscheme_genesi... 35 DEBUG=-g -Wno-char-subscripts -O
tinyscheme_genesi... 36 SYS_LIBS= -ldl -lm
tinyscheme_genesi... 37 PLATFORM_FEATURES= -DSUN_DL=1
tinyscheme_genesi... 38
tinyscheme_genesi... 39 # Cygwin
tinyscheme_genesi... 40 #PLATFORM_FEATURES = -DUSE_STRLWR=0
tinyscheme_genesi... 41
tinyscheme_genesi... 42 # MinGW/MSYS
tinyscheme_genesi... 43 #SOsuf=dll
tinyscheme_genesi... 44 #PLATFORM_FEATURES = -DUSE_STRLWR=0
tinyscheme_genesi... 45
tinyscheme_genesi... 46 # Mac OS X
tinyscheme_genesi... 47 #LD = gcc
tinyscheme_genesi... 48 #LDFLAGS = --dynamiclib
tinyscheme_genesi... 49 #DEBUG=-g -Wno-char-subscripts -O
tinyscheme_genesi... 50 #SYS_LIBS= -ldl
tinyscheme_genesi... 51 #PLATFORM_FEATURES= -DUSE_STRLWR=1 -D__APPLE__=1 -DOSX=1
tinyscheme_genesi... 52
tinyscheme_genesi... 53
tinyscheme_genesi... 54 # Solaris
tinyscheme_genesi... 55 #SYS_LIBS= -ldl -lc
tinyscheme_genesi... 56 #Osuf=o
tinyscheme_genesi... 57 #SOsuf=so
tinyscheme_genesi... 58 #EXE_EXT=
tinyscheme_genesi... 59 #LD = ld
tinyscheme_genesi... 60 #LDFLAGS = -G -Bsymbolic -z text
tinyscheme_genesi... 61 #LIBPREFIX = lib
tinyscheme_genesi... 62 #OUT = -o $@
tinyscheme_genesi... 63
tinyscheme_genesi... 64 FEATURES = $(PLATFORM_FEATURES) -DUSE_DL=1 -DUSE_MATH=1 -DUSE_ASCII_NAMES=0
tinyscheme_genesi... 65
tinyscheme_genesi... 66 OBJS = scheme.$(Osuf) dynload.$(Osuf)
tinyscheme_genesi... 67
tinyscheme_genesi... 68 LIBTARGET = $(LIBPREFIX)tinyscheme.$(SOsuf)
tinyscheme_genesi... 69 STATICLIBTARGET = $(LIBPREFIX)tinyscheme.$(LIBsuf)
tinyscheme_genesi... 70
tinyscheme_genesi... 71 all: $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT)
tinyscheme_genesi... 72
tinyscheme_genesi... 73 %.$(Osuf): %.c
tinyscheme_genesi... 74 $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $<
tinyscheme_genesi... 75
tinyscheme_genesi... 76 $(LIBTARGET): $(OBJS)
tinyscheme_genesi... 77 $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
tinyscheme_genesi... 78
tinyscheme_genesi... 79 scheme$(EXE_EXT): $(OBJS)
tinyscheme_genesi... 80 $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
tinyscheme_genesi... 81
tinyscheme_genesi... 82 $(STATICLIBTARGET): $(OBJS)
tinyscheme_genesi... 83 $(AR) $@ $(OBJS)
tinyscheme_genesi... 84
tinyscheme_genesi... 85 $(OBJS): scheme.h scheme-private.h opdefines.h
tinyscheme_genesi... 86 dynload.$(Osuf): dynload.h
tinyscheme_genesi... 87
tinyscheme_genesi... 88 clean:
tinyscheme_genesi... 89 $(RM) $(OBJS) $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT)
tinyscheme_genesi... 90 $(RM) tinyscheme.ilk tinyscheme.map tinyscheme.pdb tinyscheme.exp
tinyscheme_genesi... 91 $(RM) scheme.ilk scheme.map scheme.pdb scheme.lib scheme.exp
tinyscheme_genesi... 92 $(RM) *~
tinyscheme_genesi... 93
tinyscheme_genesi... 94 TAGS_SRCS = scheme.h scheme.c dynload.h dynload.c
tinyscheme_genesi... 95
tinyscheme_genesi... 96 tags: TAGS
tinyscheme_genesi... 97 TAGS: $(TAGS_SRCS)
tinyscheme_genesi... 98 etags $(TAGS_SRCS)