]> rtime.felk.cvut.cz Git - linux-lin.git/blobdiff - misc/tty_lin_master/Makefile
Userspace LIN master: Provide state encapsulation to test kernel code.
[linux-lin.git] / misc / tty_lin_master / Makefile
index 06443ed3dd6894018a8be73d0479857a7fc5a8fa..fa01dcf64c9d1394d21cdcd8ed2b50cea5143915 100644 (file)
@@ -1,2 +1,23 @@
-all: main.c
-       gcc main.c -lrt -std=gnu99 -Wall -pedantic -o main
+all: default
+
+CC = gcc
+CFLAGS = -std=gnu99 -Wall -pedantic -ggdb
+LDFLAGS = -lrt -ggdb
+
+.PHONY: default dep
+
+default: main
+
+main : main.o lin_common.o
+
+dep:
+       $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) > depend
+
+depend:
+       @touch depend
+
+clean :
+       rm -f *.o *~ depend
+
+-include depend
+