diff options
author | Jeongho Hwang <jbera.hwang@samsung.com> | 2012-09-19 13:15:55 +0900 |
---|---|---|
committer | Jeongho Hwang <jbera.hwang@samsung.com> | 2012-09-19 13:15:55 +0900 |
commit | c8b261d409e1cfebcc26539c58530479c531732f (patch) | |
tree | bd3365fbecb87b018ceca8bc8ef24b5db63e2ae6 /Makefile.in | |
parent | 3c73bcec3308588a22bf7596adaa990942215db4 (diff) | |
download | ccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.gz ccache-c8b261d409e1cfebcc26539c58530479c531732f.tar.bz2 ccache-c8b261d409e1cfebcc26539c58530479c531732f.zip |
Tizen 2.0 AlphaHEADtizen_2.3.1_releasesubmit/tizen_2.3.1/20150915.0950272.0_alphatizen_2.3.1master2.0alpha
Signed-off-by: Jeongho Hwang <jbera.hwang@samsung.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..e3f6e51 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,99 @@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +mandir = @mandir@ +datarootdir = @datarootdir@ +installcmd = @INSTALL@ + +AR = @AR@ +CC = @CC@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @DEFS@ @CPPFLAGS@ -I. -I$(srcdir) +LDFLAGS = @LDFLAGS@ +EXEEXT = @EXEEXT@ +RANLIB = @RANLIB@ + +libs = @LIBS@ -lz + +base_sources = \ + ccache.c mdfour.c hash.c execute.c util.c args.c stats.c version.c \ + cleanup.c snprintf.c unify.c manifest.c hashtable.c hashtable_itr.c \ + murmurhashneutral2.c hashutil.c getopt_long.c exitfn.c lockfile.c \ + counters.c language.c compopt.c +base_objs = $(base_sources:.c=.o) + +ccache_sources = main.c $(base_sources) +ccache_objs = $(ccache_sources:.c=.o) + +zlib_sources = \ + zlib/adler32.c zlib/compress.c zlib/crc32.c zlib/deflate.c zlib/gzio.c \ + zlib/inffast.c zlib/inflate.c zlib/inftrees.c zlib/trees.c zlib/zutil.c +zlib_objs = $(zlib_sources:.c=.o) + +test_suites = @test_suites@ +test_sources = test/main.c test/framework.c test/util.c $(test_suites) +test_objs = $(test_sources:.c=.o) + +all_sources = $(ccache_sources) $(test_sources) +all_objs = $(ccache_objs) $(test_objs) $(zlib_objs) + +files_to_clean = $(all_objs) ccache$(EXEEXT) test/main$(EXEEXT) *~ +files_to_distclean = Makefile config.h config.log config.status + +.PHONY: all +all: ccache$(EXEEXT) + +ccache$(EXEEXT): $(ccache_objs) @extra_deps@ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ccache_objs) $(libs) + +.PHONY: install +install: all + $(installcmd) -d $(DESTDIR)$(bindir) + $(installcmd) -m 755 ccache$(EXEEXT) $(DESTDIR)$(bindir) + $(installcmd) -d $(DESTDIR)$(mandir)/man1 + -$(installcmd) -m 644 $(srcdir)/ccache.1 $(DESTDIR)$(mandir)/man1/ + +.PHONY: clean +clean: + rm -f $(files_to_clean) + +zlib/libz.a: $(zlib_objs) + $(AR) cr $@ $(zlib_objs) + $(RANLIB) $@ + +.PHONY: perf +perf: ccache$(EXEEXT) + $(srcdir)/perf.py --ccache ccache$(EXEEXT) $(CC) $(CFLAGS) $(CPPFLAGS) $(srcdir)/ccache.c + +.PHONY: test +test: ccache$(EXEEXT) test/main$(EXEEXT) + test/main$(EXEEXT) + CC='$(CC)' $(srcdir)/test.sh + +test/main$(EXEEXT): $(base_objs) $(test_objs) @extra_deps@ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(base_objs) $(test_objs) $(libs) + +test/main.o: test/suites.h + +test/suites.h: $(test_suites) Makefile + sed -n 's/TEST_SUITE(\(.*\))/SUITE(\1)/p' $(test_suites) >$@ + +.PHONY: check +check: test + +.PHONY: distclean +distclean: clean + rm -rf $(files_to_distclean) + +.PHONY: installcheck +installcheck: ccache$(EXEEXT) test/main$(EXEEXT) + test/main$(EXEEXT) + CCACHE=$(bindir)/ccache CC='$(CC)' $(srcdir)/test.sh + +.c.o: + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + +@include_dev_mk@ |