diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /lib/util/Makefile | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util/Makefile')
-rw-r--r-- | lib/util/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/util/Makefile b/lib/util/Makefile new file mode 100644 index 00000000..8f461f28 --- /dev/null +++ b/lib/util/Makefile @@ -0,0 +1,29 @@ +ifeq ($(SRCDIR)x,x) + SRCDIR = $(CURDIR)/../.. + BUILDDIR = $(SRCDIR) +endif +SUBDIR = lib/util +VPATH=.:$(SRCDIR)/$(SUBDIR) + +include $(BUILDDIR)/Makefile.config + +INCLUDES = -I $(BUILDDIR) -I $(SRCDIR)/$(SUBDIR)/.. + +# nstring is required for asprintf(), etc. Also some systems don't have +# snprintf(), e.g. Solaris 2.5.1. 2002.03.29. +UTILOBJECTS = shhopt.o nstring.o filename.o + +MERGE_OBJECTS = + +all: $(UTILOBJECTS) + +include $(SRCDIR)/Makefile.common + +$(UTILOBJECTS):%.o:%.c importinc + $(CC) -c $(INCLUDES) -DNDEBUG $(CFLAGS) $(CFLAGS_SHLIB) \ + $(CFLAGS_PERSONAL) $(CADD) -o $@ $< + +testnstring: test.c nstring.h nstring.o + $(CC) $(CFLAGS) $(CADD) -o $@ nstring.o $< + +include Makefile.depend |