X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/blobdiff_plain/ee425d29ce1c6225ca7e85dcc99f64dc82c8dd6d..86a5f1e8ecb8de5df5ba9683a9c3a4d6460c20e9:/misc/tty_lin_master/Makefile diff --git a/misc/tty_lin_master/Makefile b/misc/tty_lin_master/Makefile index 06443ed..fa01dcf 100644 --- a/misc/tty_lin_master/Makefile +++ b/misc/tty_lin_master/Makefile @@ -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 +