Commit Graph

16 Commits

Author SHA1 Message Date
Wolfgang Hommel
e72d8e0419 Fixed build issues as suggested by Paul Wouters
- Updates COPYING file (fixed wrong FSE address)
- Avoid overwriting CFLAGS and LDFLAGS in src/Makefile
2011-11-28 19:40:00 +01:00
Wolfgang Hommel
0a1c887a8a Fixed issues on Mac OS X 10.7 Lion
- Changed interception of internal syscalls on OSX
  and malloc arena treatment
- Adapted the faketime wrapper shell script to set
  the appropriate environment variables on OSX and
  use gdate instead of date
- Added README.OSX to explain the OSX-specific
  aspects of compiling and using libfaketime
2011-10-19 21:03:41 +02:00
Derrick Brashear
74852f1682 add multi-architecture support
extra -arch flags should do it.
2011-07-08 08:19:29 -04:00
Derrick Brashear
3c24c524b3 macos: pass one gettimeofday unmodified
needed to avoid a malloc recursion; dyld calls the libSystem
initializer, which calls malloc as the first caller; that uses
the arc4 randomizer, which calls gettimeofday... the call to fake_time
calls strptime_l, _strptime0, gmtsub, and boom, back at malloc.

pass one gettimeofday call to let the malloc succeed.
2011-07-05 10:46:34 -04:00
Derrick Brashear
eb59447a6d libfaketime macos port
port libfaketime to macos and dyld.
1) _ftpl_time calls gettimeofday since real time() does so. needed
   to avoid double adjustment.
2) reduce call stack: use time tptr and call fake_time instead of
   calling time for faking other time calls.
3) provide MacOS makefile and README notes.
4) make posix realtime calls under ifdef; define for base port but not
MacOS.
2011-07-05 09:05:38 -04:00
Wolfgang Hommel
2a384f70ba fixed one more hard-coded path
changed the Makefile echo output so it also uses the prefix
environment variables just like the install calls.
2011-05-22 00:05:24 +02:00
Lukas Fleischer
b6ca32ed23 Use install(1) instead of mkdir(1) and cp(1) in Makefiles.
Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 22:07:10 +02:00
Lukas Fleischer
bb9b292a41 Use a separate Makefile for meta files.
* Create separate "install" and "uninstall" targets for meta files.

* Add meta file targets to the shortcut Makefile.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 22:02:14 +02:00
Lukas Fleischer
9763cdebd2 Use a separate Makefile for man pages.
* Create separate "install" and "uninstall" targets for man pages.

* Add man page targets to the shortcut Makefile.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 21:43:24 +02:00
Lukas Fleischer
8c6c487b24 Tell the compiler to be C99 compliant, enable all warnings.
Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 21:43:23 +02:00
Lukas Fleischer
52c30f866d Source Makefile overhaul.
* Use variables for compiler and linker flags.

* Use variables for source/object files, library names and sonames.

* Use proper targets instead of phony targets to build the shared
  libraries.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-05-10 21:43:21 +02:00
Lukas Fleischer
cf0ccef687 Move test suite to a separate subdirectory.
* Move test suite related stuff from "src/" to "test/".

* Fix "test.sh" to search for libfaketime libraries in the right place.

* Split up Makefile into two separate Makefiles (one for the main
  program and one for the test suite).

Test cases should go in another directory for the sake of clean code
separation. This will also facilitate the creation of proper Makefiles.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-04-27 18:50:40 +02:00
Lukas Fleischer
9234f5df86 Add ".PHONY" target to the Makefile.
This is required for targets that do not directly refer to files.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-04-26 17:29:22 +02:00
Lukas Fleischer
cd0667a7a6 Add an uninstall target to the Makefile.
This is especially advantageous if libfaketime is built from source as
there isn't another convenient way to do a clean uninstall.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-04-26 17:25:55 +02:00
Lukas Fleischer
46f6bd5b9b Use "$DESTDIR" and "$PREFIX" in the Makefile.
This is a standard used by almost all open source projects and allows
installing to different locations than the default location (which is
especially useful for packagers, e.g.) Switch to installing to
"/usr/local" by default, also. "/usr" should never be used as default
prefix.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
2011-04-26 17:22:12 +02:00
Wolfgang Hommel
a6ce767de9 git repository based on v0.8 2011-04-24 19:55:43 +02:00