Add semaphore functions implementations

This commit is contained in:
2019-01-12 12:39:01 +01:00
parent 833c560621
commit 2c4471a7b5
6 changed files with 126 additions and 23 deletions

View File

@@ -5,16 +5,16 @@ TARGET_2 = supervisor
all: $(TARGET_1).c $(TARGET_2).c
$(CC) $(CFLAGS) $(TARGET_1).c $(TARGET_2).c
$(CC) $(TARGET_1).o -o $(TARGET_1) -lrt
$(CC) $(TARGET_2).o -o $(TARGET_2) -lrt
$(CC) $(TARGET_1).o -o $(TARGET_1) -lrt -lpthread
$(CC) $(TARGET_2).o -o $(TARGET_2) -lrt -lpthread
generator: $(TARGET_1).c
$(CC) $(CFLAGS) $(TARGET_1).c
$(CC) $(TARGET_1).o -o $(TARGET_1) -lrt
$(CC) $(TARGET_1).o -o $(TARGET_1) -lrt -lpthread
supervisor: $(TARGET_2).c
$(CC) $(CFLAGS) $(TARGET_2).c
$(CC) $(TARGET_2).o -o $(TARGET_2) -lrt
$(CC) $(TARGET_2).o -o $(TARGET_2) -lrt -lpthread
install:
cp $(TARGET_1) /usr/local/bin/graph-$(TARGET_1)