From f40223504106ffdff83fbf9a0af16abf0eceb993 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 5 May 2016 16:01:15 +0200 Subject: simple and failsafe reader this simple library is used to separate file I/O functions from other tasks which can easily cause race conditions. --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..a4ef8a1 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +CFLAGS=-Wall -g -shared -fPIC + +rebuild: clean all + +all: file_reader.o file_reader.a file_reader.so + $(CC) -Wall -o file_reader ./file_reader.o + rm -f file_reader.o + +clean: + rm -f file_reader{.so,.a,.o,} + +test: all + ./main + + + +#.o: +# cc -shared -fPIC -c -o $@ $< + +%.so: %.o + $(CC) $(INCLUDES) $(CFLAGS) -o $@ $< + +%.a: %.o + ar rcs $@ $< + + -- cgit v1.2.3