ajout des script de creation de l'environnement de dev Nextcloud

This commit is contained in:
philippe lhardy
2025-07-03 17:21:28 +02:00
parent fd21f5186a
commit f2ff78fa86
17 changed files with 1016 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
CC=gcc
LD=gcc
CPPFLAGS=-g
BUILD=build
src=main.c
objects=$(patsubst %.c,$(BUILD)/obj/%.o,$(src))
$(objects): | $(BUILD)/obj
test:$(BUILD)/binary
mkdir -p $@
./$(BUILD)/binary test.binary >test/parse1.binary
./$(BUILD)/binary parse1.binary >test/parse2.binary
diff test/parse1.binary test/parse2.binary
$(BUILD)/binary: $(objects)
@echo link objects $(objects)
$(LD) $(LDFLAGS) $^ -o $@
$(BUILD)/obj:
mkdir -p $@
$(BUILD)/obj/%.o: %.c
@echo compile $<
@$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
clean:
rm -f $(objects)
.PHONY:clean test