diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-14 21:25:53 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-14 21:25:53 -0400 |
commit | 99b615ba75f24e48b713e9b23ae596d7ddf1c59b (patch) | |
tree | 5fb377265e9e38e441dd469043da88d3f237cd92 /Makefile | |
parent | 9aabbe7720b3c315048f977642e4bb8e387b572a (diff) | |
download | libsurvive-99b615ba75f24e48b713e9b23ae596d7ddf1c59b.tar.gz libsurvive-99b615ba75f24e48b713e9b23ae596d7ddf1c59b.tar.bz2 |
Handle autoregistration of startup functions.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,7 +2,7 @@ all : lib data_recorder test calibrate calibrate_client CC:=gcc -CFLAGS:=-Iinclude/libsurvive -I. -fPIC -g -O0 -Iredist -flto -DUSE_DOUBLE -std=gnu99 +CFLAGS:=-Iinclude/libsurvive -I. -fPIC -g -O0 -Iredist -flto -DUSE_DOUBLE -std=gnu99 -rdynamic LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11 -lm -flto -g POSERS:=src/poser_dummy.o src/poser_daveortho.o src/poser_charlesslow.o @@ -37,6 +37,10 @@ lib: lib/libsurvive.so : $(LIBSURVIVE_O) $(CC) -o $@ $^ $(LDFLAGS) -shared + +calibrate_tcc : $(LIBSURVIVE_C) + tcc -DRUNTIME_SYMNUM $(CFLAGS) -o $@ $^ $(LDFLAGS) calibrate.c redist/XDriver.c redist/os_generic.c redist/DrawFunctions.c redist/symbol_enumerator.c + clean : rm -rf *.o src/*.o *~ src/*~ test data_recorder lib/libsurvive.so redist/*.o redist/*~ |