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 /buildtools/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 'buildtools/Makefile')
-rw-r--r-- | buildtools/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/buildtools/Makefile b/buildtools/Makefile new file mode 100644 index 00000000..63da1adf --- /dev/null +++ b/buildtools/Makefile @@ -0,0 +1,46 @@ +ifeq ($(SRCDIR)x,x) + SRCDIR = $(CURDIR)/.. + BUILDDIR = $(SRCDIR) +endif +SUBDIR = buildtools +VPATH = .:$(SRCDIR)/$(SUBDIR) +include $(BUILDDIR)/Makefile.config + +MERGE_OBJECTS = + +# These are programs that are used by the make files: +PROGS = libopt typegen endiangen + +all: $(PROGS) + +BINARIES = +SCRIPTS = + +OMIT_BUILDTOOL_RULE = 1 +include $(SRCDIR)/Makefile.common + +ifdef DLLVER +STRIP_DLL_VERSION=-DDLLVERSTR="\"$(DLLVER)\"" +endif + +ifeq ($(LINKER_CAN_DO_EXPLICIT_LIBRARY),Y) +EXPLICIT=-DEXPLICIT +endif + +libopt.o: libopt.c + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) \ + -DSHLIBPREFIXLIST="\"$(SHLIBPREFIXLIST)\"" \ + $(STRIP_DLL_VERSION) $(EXPLICIT) $(CFLAGS_PERSONAL) $(CADD) \ + -o $@ $< + +typegen.o endiangen.o:%.o:%.c + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $< + +$(PROGS):%:%.o + $(LD_FOR_BUILD) -o $@ $< + +clean: cleanlocal +.PHONY: cleanlocal +cleanlocal: + rm -f $(PROGS) + |