forked from jean-thomas/Excalibur-CS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CFLAGS= -Wall -g -std=gnu11 -frecord-gcc-switches `pkg-config fuse3 --cflags --libs`
OBJS=ioctl_client.o ioctl.o
CC=gcc
SHELL := /bin/bash
all: EXCBR_csfs csfs_application array_as_file
EXCBR_csfs: EXCBR_CSFS.c EXCBR_CSFS_fnct.o EXCBR_CS_exec.o
$(CC) $^ -o $@ $(CFLAGS)
EXCBR_CSFS_fnct.o: EXCBR_CSFS_fnct.c EXCBR_CSFS_fnct.h EXCBR_common.h
$(CC) -c EXCBR_CSFS_fnct.c -o $@ $(CFLAGS)
EXCBR_CS_exec.o: EXCBR_CS_exec.c EXCBR_CS_exec.h
$(CC) -c EXCBR_CS_exec.c -o $@ $(CFLAGS)
app_using_cs.o: app_using_cs.c EXCBR_CSFS_fnct.o
$(CC) -c app_using_cs.c -o $@ $(CFLAGS)
csfs_application: EXCBR_CSFS_fnct.o app_using_cs.o
$(CC) app_using_cs.o EXCBR_CSFS_fnct.o -o $@ $(CFLAGS)
array_as_file: array_as_file.c
$(CC) $^ -o $@ $(CFLAGS)
run:
./EXCBR_csfs -d -o source=REPO TEST
test:
./minitest_EXCBR_csfs.sh TEST
free:
fusermount -u -z TEST
clean:
rm -f *.o array_as_file EXCBR_csfs csfs_application
fusermount -u -z TEST