summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael D. Stemle, Jr <themanchicken@gmail.com>2018-10-01 20:08:27 -0400
committerMichael D. Stemle, Jr <themanchicken@gmail.com>2018-10-01 20:08:27 -0400
commit39c6872f6d46b51583b0f3d3f3c179e301048b68 (patch)
tree4b451d6df691c2dc009abdc6d94b29fdcd35b4ac
parent5c6518c597160109fbe599fb4db9ca91e4a6769c (diff)
downloadlibfaketime-39c6872f6d46b51583b0f3d3f3c179e301048b68.tar.gz
Removing old makefiles.
-rw-r--r--Makefile34
-rw-r--r--man/Makefile14
-rw-r--r--man/Makefile.OSX15
-rw-r--r--src/Makefile118
-rw-r--r--src/Makefile.OSX75
-rw-r--r--test/Makefile31
-rw-r--r--test/Makefile.OSX30
7 files changed, 0 insertions, 317 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index d88e35a..0000000
--- a/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-INSTALL ?= install
-
-UNAME=$(shell uname)
-SELECTOR:=$(shell if test "${UNAME}" = "Darwin" ; then echo "-f Makefile.OSX" ; fi)
-
-all:
- $(MAKE) $(SELECTOR) -C src all
-
-test:
- $(MAKE) $(SELECTOR) -C test all
-
-install:
- $(MAKE) $(SELECTOR) -C src install
- $(MAKE) $(SELECTOR) -C man install
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/share/doc/faketime/"
- $(INSTALL) -m0644 README "${DESTDIR}${PREFIX}/share/doc/faketime/README"
- $(INSTALL) -m0644 NEWS "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS"
-
-uninstall:
- $(MAKE) $(SELECTOR) -C src uninstall
- $(MAKE) $(SELECTOR) -C man uninstall
- rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README"
- rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS"
- rmdir "${DESTDIR}${PREFIX}/share/doc/faketime"
-
-clean:
- $(MAKE) $(SELECTOR) -C src clean
- $(MAKE) $(SELECTOR) -C test clean
-
-distclean:
- $(MAKE) $(SELECTOR) -C src distclean
- $(MAKE) $(SELECTOR) -C test distclean
-
-.PHONY: all test install uninstall clean distclean
diff --git a/man/Makefile b/man/Makefile
deleted file mode 100644
index 807c157..0000000
--- a/man/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-all:
-
-install:
- $(INSTALL) -Dm0644 faketime.1 "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
- gzip -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
-
-uninstall:
- rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"
-
-.PHONY: all install uninstall
diff --git a/man/Makefile.OSX b/man/Makefile.OSX
deleted file mode 100644
index 5451acd..0000000
--- a/man/Makefile.OSX
+++ /dev/null
@@ -1,15 +0,0 @@
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-all:
-
-install:
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/share/man/man1"
- $(INSTALL) -m0644 faketime.1 "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
- gzip -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
-
-uninstall:
- rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"
-
-.PHONY: all install uninstall
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index e2f047a..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# Notes:
-#
-# * Compilation Defines:
-#
-# FAKE_STAT
-# - Enables time faking also for files' timestamps.
-#
-# NO_ATFILE
-# - Disables support for the fstatat() group of functions
-#
-# PTHREAD_SINGLETHREADED_TIME
-# - Define this if you want to single-thread time() ... there ARE
-# possible caching side-effects in a multithreaded environment
-# without this, but the performance impact may require you to
-# try it unsynchronized.
-#
-# FAKE_INTERNAL_CALLS
-# - Also intercept libc internal __functions, e.g. not just time(),
-# but also __time(). Enhances compatibility with applications
-# that make use of low-level system calls, such as Java Virtual
-# Machines.
-#
-# FAKE_SLEEP
-# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
-#
-# FAKE_TIMERS
-# - Also intercept timer_settime() and timer_gettime()
-#
-# FAKE_PTHREAD
-# - Intercept pthread_cond_timedwait
-#
-# MULTI_ARCH
-# - If MULTI_ARCH is set, the faketime wrapper program will put a literal
-# $LIB into the LD_PRELOAD environment variable it creates, which makes
-# ld automatically choose the correct library version to use for the
-# target binary. Use for Linux platforms with Multi-Arch support only!
-#
-# * Compilation addition: second libMT target added for building the pthread-
-# enabled library as a separate library
-#
-# * Compilation switch change: previous versions compiled using '-nostartfiles'
-# This is no longer the case since there is a 'startup' constructor for the library
-# which is used to activate the start-at times when specified. This also initializes
-# the dynamic disabling of the FAKE_STAT calls.
-#
-# By default, libfaketime will be compiled for your system's default architecture.
-# To build 32-bit libraries and binaries, add -m32 to CFLAGS and LDFLAGS.
-#
-# Change PREFIX to where you want libfaketime (libraries and wrapper binary) installed.
-# LIBDIRNAME is relative to PREFIX. The default is to install into $PREFIX/lib/faketime,
-# but you can set LIBDIRNAME to, e.g., /lib64 if you want to install it elsewhere.
-# LIBDIRNAME has been introduced to support MultiLib systems. Please do not change the
-# default value on MultiArch systems.
-#
-# For testing in the current directory without installation, try make PREFIX= LIBDIRNAME='.'
-
-CC ?= gcc
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-LIBDIRNAME ?= /lib/faketime
-PLATFORM ?=$(shell uname)
-
-CFLAGS += -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"'
-ifeq ($(PLATFORM),SunOS)
-CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
-endif
-
-LIB_LDFLAGS += -shared
-
-LDFLAGS += -lpthread
-ifneq ($(PLATFORM),SunOS)
-LDFLAGS += -Wl,--version-script=libfaketime.map
-endif
-
-LDADD += -ldl -lm -lrt
-BIN_LDFLAGS += -lrt
-
-SRC = libfaketime.c
-LIBS_OBJ = libfaketime.o libfaketimeMT.o
-BINS = faketime
-
-SONAME = 1
-LIBS = libfaketime.so.${SONAME} libfaketimeMT.so.${SONAME}
-
-all: ${LIBS} ${BINS}
-
-libfaketimeMT.o: EXTRA_FLAGS := -DPTHREAD_SINGLETHREADED_TIME
-
-${LIBS_OBJ}: libfaketime.c
- ${CC} -o $@ -c ${CFLAGS} ${CPPFLAGS} ${EXTRA_FLAGS} $<
-
-%.so.${SONAME}: %.o libfaketime.map
- ${CC} -o $@ -Wl,-soname,$@ ${LDFLAGS} ${LIB_LDFLAGS} $< ${LDADD}
-
-${BINS}: faketime.c
- ${CC} -o $@ ${CFLAGS} ${CPPFLAGS} ${EXTRA_FLAGS} $< ${LDFLAGS} ${BIN_LDFLAGS}
-
-clean:
- @rm -f ${LIBS_OBJ} ${LIBS} ${BINS}
-
-distclean: clean
- @echo
-
-install: ${LIBS} ${BINS}
- @echo
- @echo "Copying the faketime libraries to ${DESTDIR}${PREFIX}${LIBDIRNAME} and the faketime wrapper script to ${DESTDIR}${PREFIX}/bin ..."
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}${LIBDIRNAME}/"
- $(INSTALL) -m0644 ${LIBS} "${DESTDIR}${PREFIX}${LIBDIRNAME}/"
- $(INSTALL) -Dm0755 faketime "${DESTDIR}${PREFIX}/bin/faketime"
-
-uninstall:
- for f in ${LIBS}; do rm -f "${DESTDIR}${PREFIX}${LIBDIRNAME}/$$f"; done
- rmdir "${DESTDIR}${PREFIX}${LIBDIRNAME}"
- rm -f "${DESTDIR}${PREFIX}/bin/faketime"
-
-.PHONY: all clean distclean install uninstall
diff --git a/src/Makefile.OSX b/src/Makefile.OSX
deleted file mode 100644
index 683ad04..0000000
--- a/src/Makefile.OSX
+++ /dev/null
@@ -1,75 +0,0 @@
-#
-# Notes:
-#
-# * Compilation Defines:
-#
-# FAKE_STAT
-# - Enables time faking also for files' timestamps.
-#
-# NO_ATFILE
-# - Disables support for the fstatat() group of functions
-#
-# PTHREAD
-# - Define this to enable multithreading support.
-#
-# PTHREAD_SINGLETHREADED_TIME
-# - Define this if you want to single-thread time() ... there ARE
-# possible caching side-effects in a multithreaded environment
-# without this, but the performance impact may require you to
-# try it unsynchronized.
-#
-# FAKE_SLEEP
-# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
-#
-# * Compilation addition: second libMT target added for building the pthread-
-# enabled library as a separate library
-#
-# * Compilation switch change: previous versions compiled using '-nostartfiles'
-# This is no longer the case since there is a 'startup' constructor for the library
-# which is used to activate the start-at times when specified. This also initializes
-# the dynamic disabling of the FAKE_STAT calls.
-#
-# By default, libfaketime will be compiled for your system's default architecture.
-# To build for a different architecture, add -arch flags to CFLAGS and LDFLAGS.
-#
-# default to clang to support thread local variables
-CC ?= clang
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-CFLAGS += -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'${PREFIX}'"'
-LIB_LDFLAGS += -dynamiclib -current_version 0.9.7 -compatibility_version 0.7
-
-SONAME = 1
-LIBS = libfaketime.${SONAME}.dylib
-BINS = faketime
-
-all: ${LIBS} ${BINS}
-
-libfaketime.${SONAME}.dylib: libfaketime.c
- ${CC} -o $@ ${CFLAGS} ${LDFLAGS} ${LIB_LDFLAGS} -install_name ${PREFIX}/lib/faketime/$@ $<
-
-faketime: faketime.c
- ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $<
-
-clean:
- @rm -f ${OBJ} ${LIBS} ${BINS}
-
-distclean: clean
- @echo
-
-install: ${LIBS} ${BINS}
- @echo
- @echo "Copying the faketime libraries to ${DESTDIR}${PREFIX}/lib/faketime and the faketime wrapper script to ${DESTDIR}${PREFIX}/bin ..."
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/lib/faketime/"
- $(INSTALL) -m0644 ${LIBS} "${DESTDIR}${PREFIX}/lib/faketime/"
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/bin"
- $(INSTALL) -m0755 faketime "${DESTDIR}${PREFIX}/bin/faketime"
-
-uninstall:
- for f in ${LIBS}; do rm -f "${DESTDIR}${PREFIX}/lib/faketime/$$f"; done
- rmdir "${DESTDIR}${PREFIX}/lib/faketime"
- rm -f "${DESTDIR}${PREFIX}/bin/faketime"
-
-.PHONY: all clean distclean install uninstall
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
index 94d1a2e..0000000
--- a/test/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-CC = gcc
-
-CFLAGS = -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra
-LDFLAGS = -lrt -lpthread
-
-SRC = timetest.c
-OBJ = ${SRC:.c=.o}
-
-all: timetest test
-
-.c.o:
- ${CC} -c ${CFLAGS} $<
-
-timetest: ${OBJ}
- ${CC} -o $@ ${OBJ} ${LDFLAGS}
-
-test: timetest functest
- @echo
- @./test.sh
-
-# run functional tests
-functest:
- ./testframe.sh functests
-
-clean:
- @rm -f ${OBJ} timetest
-
-distclean: clean
- @echo
-
-.PHONY: all test clean distclean
diff --git a/test/Makefile.OSX b/test/Makefile.OSX
deleted file mode 100644
index 209d19f..0000000
--- a/test/Makefile.OSX
+++ /dev/null
@@ -1,30 +0,0 @@
-CC ?= clang
-
-CFLAGS += -std=gnu99 -Wall -DFAKE_STAT
-
-SRC = timetest.c
-OBJ = ${SRC:.c=.o}
-
-all: timetest test
-
-.c.o:
- ${CC} -c ${CFLAGS} $<
-
-timetest: ${OBJ}
- ${CC} -o $@ ${OBJ} ${LDFLAGS}
-
-test: timetest functest
- @echo
- @./test_OSX.sh
-
-# run functional tests
-functest:
- ./testframe.sh functests
-
-clean:
- @rm -f ${OBJ} timetest
-
-distclean: clean
- @echo
-
-.PHONY: all test clean distclean