2008-05-23 20:56:24 +00:00
|
|
|
ifeq ($(SRCDIR),)
|
|
|
|
updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
|
|
|
|
EXPATDIR := $(call updir,$(CURDIR))
|
|
|
|
LIBDIR := $(call updir,$(EXPATDIR))
|
|
|
|
SRCDIR := $(call updir,$(LIBDIR))
|
|
|
|
BLDDIR := $(SRCDIR)
|
2006-12-21 03:57:49 +00:00
|
|
|
endif
|
2008-05-23 20:56:24 +00:00
|
|
|
SUBDIR := lib/expat/gennmtab
|
2006-12-21 03:57:49 +00:00
|
|
|
|
2008-05-23 20:56:24 +00:00
|
|
|
include $(BLDDIR)/config.mk
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
|
|
|
|
|
|
|
|
LDFLAGS = $(LADD)
|
|
|
|
|
2008-05-23 20:56:24 +00:00
|
|
|
INCLUDES = -I$(BLDDIR) -I$(SRCDIR)/lib/util/include
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
default: all
|
|
|
|
|
2008-05-23 20:56:24 +00:00
|
|
|
include $(SRCDIR)/common.mk
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: gennmtab
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: clean-common
|
|
|
|
rm -f gennmtab
|
|
|
|
|
|
|
|
.PHONY: distclean
|
|
|
|
distclean: clean distclean-common
|
|
|
|
|
|
|
|
.PHONY: tags
|
|
|
|
tags: TAGS
|
|
|
|
|
|
|
|
.PHONY: distdir
|
|
|
|
distdir:
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
|
|
|
|
.PHONY: dep
|
|
|
|
dep: dep-common
|
|
|
|
|
|
|
|
gennmtab.o:%.o:%.c
|
2008-05-23 20:56:24 +00:00
|
|
|
$(BUILDTOOL_CC) -c $< -o $@ $(CFLAGS) $(INCLUDES)
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
gennmtab:%:%.o
|
2008-05-23 20:56:24 +00:00
|
|
|
$(BUILDTOOL_CCLD) -o $@ $(LDFLAGS) $^
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
include Makefile.depend
|