Obsolete
/
libipc-old
Archived
3
0
Fork 0

tout ce qui est inutile dans misc/

more_to_read
Philippe PITTOLI 2016-05-31 23:16:39 +02:00
parent 6b2e6d6135
commit ea882d37dc
4 changed files with 23 additions and 1 deletions

22
misc/Makefile Normal file
View File

@ -0,0 +1,22 @@
CC=gcc
CFLAGS=-Wall -g
LDFLAGS=
CFILES=$(wildcard *.c) # CFILES => recompiles everything on a C file change
EXEC=$(basename $(wildcard *.c))
SOURCES=$(wildcard ../lib/*.c)
OBJECTS=$(SOURCES:.c=.o)
TESTS=$(addsuffix .test, $(EXEC))
all: $(SOURCES) $(EXEC)
$(EXEC): $(OBJECTS) $(CFILES)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $@.c -o $@
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
clean:
-rm $(OBJECTS)
mrproper: clean
rm $(EXEC)

View File

@ -1,4 +1,4 @@
#include "lib/communication.h"
#include "../lib/communication.h"
/*
* pipes creation and removal test program