diff options
author | Haoran S. Diao <0@hairydiode.xyz> | 2019-04-13 13:03:52 -0400 |
---|---|---|
committer | Haoran S. Diao <0@hairydiode.xyz> | 2019-04-13 13:03:52 -0400 |
commit | 479abdfc5ffbaafa4b00f46cf589309dc0ec071b (patch) | |
tree | 08f6b251ad8a47a4aa7e9b4fc0615a8d36aafd7a /RS-232/Makefile | |
parent | 511faa6d6d7cf46cba1e7e29ac0f0f102d87a812 (diff) |
added RS-232 Library, also covered by the GPL
Diffstat (limited to 'RS-232/Makefile')
-rwxr-xr-x | RS-232/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/RS-232/Makefile b/RS-232/Makefile new file mode 100755 index 0000000..6af5201 --- /dev/null +++ b/RS-232/Makefile @@ -0,0 +1,42 @@ +# +# +# Author: Teunis van Beelen +# +# email: teuniz@gmail.com +# +# + +CC = gcc +CFLAGS = -Wall -Wextra -Wshadow -Wformat-nonliteral -Wformat-security -Wtype-limits -o2 + +objects = rs232.o + +all: test_rx test_tx + +test_rx : $(objects) demo_rx.o + $(CC) $(objects) demo_rx.o -o test_rx + +test_tx : $(objects) demo_tx.o + $(CC) $(objects) demo_tx.o -o test_tx + +demo_rx.o : demo_rx.c rs232.h + $(CC) $(CFLAGS) -c demo_rx.c -o demo_rx.o + +demo_tx.o : demo_tx.c rs232.h + $(CC) $(CFLAGS) -c demo_tx.c -o demo_tx.o + +rs232.o : rs232.h rs232.c + $(CC) $(CFLAGS) -c rs232.c -o rs232.o + +clean : + $(RM) test_rx test_tx $(objects) demo_rx.o demo_tx.o rs232.o + +# +# +# +# + + + + + |