2006-09-08 11:27:01 +00:00
|
|
|
SRCS = \
|
|
|
|
awk.c err.c tree.c str.c tab.c map.c parse.c \
|
|
|
|
run.c val.c func.c misc.c extio.c rex.c
|
2006-04-18 16:27:29 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
OUT = libxpawk.a
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
#CFLAGS = -m64 -O2 -Wall -std=c89 -pedantic -I../.. -DXP_AWK_STAND_ALONE
|
|
|
|
CFLAGS = -m64 -O2 -Wall -I../.. -DXP_AWK_STAND_ALONE
|
|
|
|
|
|
|
|
all: $(OBJS)
|
|
|
|
ar cr $(OUT) $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS) $(OUT) *.obj
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|