2007-05-02 01:07:00 +00:00
|
|
|
#
|
2007-11-12 18:04:00 +00:00
|
|
|
# $Id: makefile.in,v 1.6 2007/11/11 15:06:47 bacon Exp $
|
2007-05-02 01:07:00 +00:00
|
|
|
#
|
|
|
|
|
2008-06-10 00:49:17 +00:00
|
|
|
TOP_DIR = @abs_top_builddir@
|
2008-06-10 03:29:00 +00:00
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
CC = @CC@
|
2007-05-07 20:08:00 +00:00
|
|
|
CXX = @CXX@
|
2008-06-10 00:49:17 +00:00
|
|
|
CFLAGS = @CFLAGS@ -I$(TOP_DIR)/inc
|
|
|
|
CXXFLAGS = @CXXFLAGS@ -I$(TOP_DIR)/inc
|
|
|
|
LDFLAGS = @LDFLAGS@ -L$(TOP_DIR)/out/@BUILDMODE@/lib
|
2007-05-02 01:07:00 +00:00
|
|
|
LIBS = @LIBS@ -laseawk -lasecmn -laseutl -lm
|
2007-05-07 20:08:00 +00:00
|
|
|
LIBS_CXX = -laseawk++ ${LIBS}
|
2007-05-02 01:07:00 +00:00
|
|
|
MODE = @BUILDMODE@
|
|
|
|
|
2008-06-10 00:49:17 +00:00
|
|
|
STRIP = @STRIP@
|
2008-06-13 04:38:59 +00:00
|
|
|
AR = @AR@
|
2008-06-10 00:49:17 +00:00
|
|
|
|
2008-06-13 04:38:59 +00:00
|
|
|
LIBTOOL_COMPILE = $(TOP_DIR)/libtool --mode=compile
|
|
|
|
LIBTOOL_LINK = $(TOP_DIR)/libtool --mode=link
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2008-06-10 00:49:17 +00:00
|
|
|
OUT_DIR= $(TOP_DIR)/out/$(MODE)
|
2007-11-12 18:04:00 +00:00
|
|
|
OUT_DIR_LIB = $(OUT_DIR)/lib
|
2008-06-10 00:49:17 +00:00
|
|
|
OUT_DIR_BIN = $(OUT_DIR)/cmd
|
2007-05-02 01:07:00 +00:00
|
|
|
TMP_DIR = $(MODE)
|
|
|
|
|
|
|
|
ASEAWK_LIB =
|
|
|
|
|
2008-06-10 03:29:00 +00:00
|
|
|
all: build
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-12-14 23:37:58 +00:00
|
|
|
build: $(TMP_DIR) $(OUT_DIR_BIN) $(OUT_DIR_BIN)/aseawk $(OUT_DIR_BIN)/aseawk++
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-11-12 18:04:00 +00:00
|
|
|
$(OUT_DIR_BIN)/aseawk: awk.c
|
2008-06-13 04:38:59 +00:00
|
|
|
$(LIBTOOL_LINK) $(CC) $(CFLAGS) -o $@ awk.c $(LDFLAGS) $(LIBS)
|
2008-06-10 00:49:17 +00:00
|
|
|
$(STRIP) $@
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-11-12 18:04:00 +00:00
|
|
|
$(OUT_DIR_BIN)/aseawk++: Awk.cpp
|
2008-06-13 04:38:59 +00:00
|
|
|
$(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) -o $@ Awk.cpp $(LDFLAGS) $(LIBS_CXX)
|
2008-06-10 00:49:17 +00:00
|
|
|
$(STRIP) $@
|
2007-05-07 20:08:00 +00:00
|
|
|
|
2007-11-12 18:04:00 +00:00
|
|
|
$(OUT_DIR_BIN):
|
|
|
|
mkdir -p $(OUT_DIR_BIN)
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
$(TMP_DIR):
|
|
|
|
mkdir -p $(TMP_DIR)
|
|
|
|
|
2007-12-14 23:25:39 +00:00
|
|
|
$(TMP_DIR)/cj:
|
|
|
|
mkdir -p $(TMP_DIR)/cj
|
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
clean:
|
2008-06-10 03:29:00 +00:00
|
|
|
rm -rf $(OUT_DIR_BIN)/aseawk $(OUT_DIR_BIN)/aseawk++
|
2007-05-02 01:07:00 +00:00
|
|
|
|