gimp/plug-ins/script-fu/re/re.makefile
2004-10-06 21:47:36 +00:00

47 lines
926 B
Makefile

# Makefile for TinyScheme's extension library "re" (regular expressions)
# Time-stamp: <2002-06-24 14:13:42 gildea>
SCHEME_H_DIR=..
# Windows/2000
# CC = cl -nologo
# DEBUG = -W3 -Z7 -MD
# SYS_LIBS=
# Osuf=obj
# SOsuf=dll
# LD = link -nologo
# LDFLAGS = -debug -map -dll -incremental:no
# OUT = -out:$@
# Unix, generally
CC = gcc -fpic
DEBUG=-g -Wall -Wno-char-subscripts -O
Osuf=o
SOsuf=so
OUT = -o $@
# Linux
LD = gcc
LDFLAGS = -shared
SYS_LIBS=
# Solaris
# LD = /usr/ccs/bin/ld
## -Bsymbolic nec. because we have fns w same name as in libc.
# LDFLAGS = -G -Bsymbolic -z text
# SYS_LIBS= -lc
SRCS = re.c debug.c regcomp.c regerror.c regexec.c regfree.c split.c
OBJS = $(SRCS:.c=.$(Osuf))
all: re.$(SOsuf)
%.$(Osuf): %.c
$(CC) -c $(DEBUG) -DUSE_DL -I. -I$(SCHEME_H_DIR) $+
re.$(SOsuf): $(OBJS)
$(LD) $(LDFLAGS) $(OUT) $+ $(SYS_LIBS)
clean:
-rm -f $(OBJS) re.$(SOsuf)