Archived
3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
libipc-old/remote/Makefile

26 lines
473 B
Makefile
Raw Normal View History

CC=gcc
CFLAGS=-Wall -g
LDFLAGS= -pthread
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))
2016-09-19 17:09:45 +02:00
all: $(SOURCES) $(EXEC)
$(EXEC): $(OBJECTS) $(CFILES)
2016-09-19 17:09:45 +02:00
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $@.c -lcbor -o $@.bin
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
clean:
2016-09-19 17:09:45 +02:00
@-rm $(OBJECTS)
mrproper: clean
2016-09-19 17:09:45 +02:00
@-rm *.bin
2016-09-21 20:36:39 +02:00
cleantmp:
rm /tmp/ipc/*