Most C code has been moved: this was very old student's code, mostly useless.
This commit is contained in:
parent
29ca3ebabd
commit
bb8cd3d410
88 changed files with 34 additions and 0 deletions
c/old
MakefileMakefile.distortapres.cskel_getopts.csqueeze.cstrdup.cstrdup2.cswapp.ctestargs.cvoir.c
by-line
cd.cchrono.ccronbis.cdesign-test
distort.ceko.ceko2.cexoPointeurs.cfunction.chuman.clibipc
.gitignorebuild.shclient-tcp.cexample-syslog.cprint-bytes.cprint-hexa.cselect.cstruct-ipc-switching.ctest-connection.ctest-select.ctests-envvars.cto-pascal.pl
lirecharl.cmatrice1.cmatrice2.cmini_shell.cminmax.cminuscule.cmiroir.cmonswap.cmultiChrono.cpalindrome.cprintenv.csemaphores_manuel_exemples
Exemple_curses
Exemples_semaphores
FileeDeMessage
essaiCurses.pdfexercice_rw
Makefileconsommateur.cconsommateur.hconstantes.hglobal.cproducteur.cproducteur.hrapportsema.csema.htypes.h
ipc_shm_posix.cmanuel_2009.pdfwtest6.c.pdfweechat_plugins
wordcount.c
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…
Add table
Reference in a new issue