Most C code has been moved: this was very old student's code, mostly useless.
This commit is contained in:
parent
29ca3ebabd
commit
bb8cd3d410
33
c/old/Makefile
Normal file
33
c/old/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
#SOURCE= vlc
|
||||
#CFLAGS=$(shell pkg-config --libs vlc)
|
||||
#
|
||||
#all: compilationvlc
|
||||
#
|
||||
#compilationvlc:
|
||||
# $(CC) $(SOURCE).c -o $(SOURCE) $(CFLAGS)
|
||||
|
||||
CC=clang
|
||||
CFLAGS=-c -Wall -g
|
||||
LDFLAGS=
|
||||
CFILES=$(wildcard *.c) # CFILES => recompiles everything on a C file change
|
||||
EXEC=$(basename $(wildcard *.c))
|
||||
#SOURCES=$(wildcard *.c)
|
||||
TESTS=$(addsuffix .test, $(EXEC))
|
||||
|
||||
all: $(SOURCES) $(EXEC)
|
||||
|
||||
$(EXEC): $(CFILES)
|
||||
$(CC) $(LDFLAGS) $@.c -o $@
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
@-rm $(EXEC)
|
||||
|
||||
# to test a binary "prog" : make prog.test
|
||||
|
||||
$(TESTS):
|
||||
valgrind --leak-check=full -v --track-origins=yes ./$(basename $@)
|
||||
|
||||
test: all $(TESTS)
|
1
c/old/by-line/README.md
Normal file
1
c/old/by-line/README.md
Normal file
@ -0,0 +1 @@
|
||||
This application is an example of the `poll` syscall.
|
Loading…
Reference in New Issue
Block a user