ajout des script de creation de l'environnement de dev Nextcloud
This commit is contained in:
34
nextcloud_devenv/c/Makefile
Normal file
34
nextcloud_devenv/c/Makefile
Normal 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
|
||||
1
nextcloud_devenv/c/README
Normal file
1
nextcloud_devenv/c/README
Normal file
@@ -0,0 +1 @@
|
||||
source placeholder for nextcloud_devenv in c autogenerated by ./create_project.sh lun. 30 juin 2025 15:08:14 CEST
|
||||
Reference in New Issue
Block a user