1
Fork 0

Exercici 1: Preparació de l'entorn [20%]

This commit is contained in:
Guillem 2021-10-19 20:34:29 +02:00
parent e6a48b8c0e
commit c43a99dca8
51 changed files with 378 additions and 291 deletions

View file

@ -1,12 +1,12 @@
.PHONY: clean All .PHONY: clean All
All: All:
@echo "----------Building project:[ UOCContacts - Debug ]----------" @echo "----------Building project:[ UOCContacts - Release ]----------"
@cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk" @cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk"
@echo "----------Building project:[ UOC20211 - Debug ]----------" @echo "----------Building project:[ UOC20211 - Release ]----------"
@"$(MAKE)" -f "UOC20211.mk" @"$(MAKE)" -f "UOC20211.mk"
clean: clean:
@echo "----------Cleaning project:[ UOCContacts - Debug ]----------" @echo "----------Cleaning project:[ UOCContacts - Release ]----------"
@cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk" clean @cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk" clean
@echo "----------Cleaning project:[ UOC20211 - Debug ]----------" @echo "----------Cleaning project:[ UOC20211 - Release ]----------"
@"$(MAKE)" -f "UOC20211.mk" clean @"$(MAKE)" -f "UOC20211.mk" clean

View file

@ -1,4 +1,4 @@
gsboeck@uoc.edu gsboeck@uoc.edu
Solà i Boeck, Guillem Solà i Boeck , Guillem
Fedora release 34 (Thirty Four) x86_64 Fedora release 34 (Thirty Four) x86_64
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC) gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC)

View file

@ -2,21 +2,21 @@
## Auto Generated makefile by CodeLite IDE ## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased ## any manual changes will be erased
## ##
## Debug ## Release
ProjectName :=UOC20211 ProjectName :=UOC20211
ConfigurationName :=Debug ConfigurationName :=Release
WorkspacePath :=W:/Docencia/PP/20211/PR1/UOC20211 WorkspacePath :=/dades/git/UOC/PP/PR1/UOC20211
ProjectPath :=W:/Docencia/PP/20211/PR1/UOC20211 ProjectPath :=/dades/git/UOC/PP/PR1/UOC20211
IntermediateDirectory :=./bin/Debug IntermediateDirectory :=./bin/Release
OutDir := $(IntermediateDirectory) OutDir := $(IntermediateDirectory)
CurrentFileName := CurrentFileName :=
CurrentFilePath := CurrentFilePath :=
CurrentFileFullPath := CurrentFileFullPath :=
User :=xavie User :=Guillem
Date :=11/10/2021 Date :=19/10/21
CodeLitePath :="C:/Program Files/CodeLite" CodeLitePath :=/home/guillem/.codelite
LinkerName :=C:/TDM-GCC-64/bin/g++.exe LinkerName :=/usr/bin/g++
SharedObjectLinkerName :=C:/TDM-GCC-64/bin/g++.exe -shared -fPIC SharedObjectLinkerName :=/usr/bin/g++ -shared -fPIC
ObjectSuffix :=.o ObjectSuffix :=.o
DependSuffix :=.o.d DependSuffix :=.o.d
PreprocessSuffix :=.i PreprocessSuffix :=.i
@ -27,42 +27,40 @@ OutputSwitch :=-o
LibraryPathSwitch :=-L LibraryPathSwitch :=-L
PreprocessorSwitch :=-D PreprocessorSwitch :=-D
SourceSwitch :=-c SourceSwitch :=-c
OutputFile :=./bin/$(ProjectName)d OutputFile :=./bin/$(ProjectName)
Preprocessors := Preprocessors :=$(PreprocessorSwitch)NDEBUG
ObjectSwitch :=-o ObjectSwitch :=-o
ArchiveOutputSwitch := ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E PreprocessOnlySwitch :=-E
ObjectsFileList :="UOC20211.txt" ObjectsFileList :="UOC20211.txt"
PCHCompileFlags := PCHCompileFlags :=
MakeDirCommand :=makedir MakeDirCommand :=mkdir -p
RcCmpOptions :=
RcCompilerName :=C:/TDM-GCC-64/bin/windres.exe
LinkOptions := LinkOptions :=
IncludePath := $(IncludeSwitch). $(IncludeSwitch). $(IncludeSwitch)test/include $(IncludeSwitch)UOCContacts/include IncludePath := $(IncludeSwitch). $(IncludeSwitch). $(IncludeSwitch)test/include $(IncludeSwitch)UOCContacts/include
IncludePCH := IncludePCH :=
RcIncludePath := RcIncludePath :=
Libs := $(LibrarySwitch)UOCContactsd Libs := $(LibrarySwitch)UOCContacts
ArLibs := "libUOCContactsd.a" ArLibs := "libUOCContacts.a"
LibPath := $(LibraryPathSwitch). $(LibraryPathSwitch)./lib LibPath := $(LibraryPathSwitch). $(LibraryPathSwitch)./lib
## ##
## Common variables ## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables ## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
## ##
AR := C:/TDM-GCC-64/bin/ar.exe rcu AR := /usr/bin/ar rcu
CXX := C:/TDM-GCC-64/bin/g++.exe CXX := /usr/bin/g++
CC := C:/TDM-GCC-64/bin/gcc.exe CC := /usr/bin/gcc
CXXFLAGS := -g -O0 -Wall $(Preprocessors) CXXFLAGS := -O2 -Wall $(Preprocessors)
CFLAGS := -g -O0 -Wall $(Preprocessors) CFLAGS := -O2 -Wall $(Preprocessors)
ASFLAGS := ASFLAGS :=
AS := C:/TDM-GCC-64/bin/as.exe AS := /usr/bin/as
## ##
## User defined environment variables ## User defined environment variables
## ##
CodeLiteDir:=C:\Program Files\CodeLite CodeLiteDir:=/usr/share/codelite
Objects0=$(IntermediateDirectory)/src_main.c$(ObjectSuffix) $(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) $(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) $(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) Objects0=$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) $(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) $(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) $(IntermediateDirectory)/src_main.c$(ObjectSuffix)
@ -74,25 +72,25 @@ Objects=$(Objects0)
.PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs .PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs
all: $(OutputFile) all: $(OutputFile)
$(OutputFile): $(IntermediateDirectory)/.d ".build-debug\UOCContacts" $(Objects) $(OutputFile): $(IntermediateDirectory)/.d ".build-release/UOCContacts" $(Objects)
@$(MakeDirCommand) $(@D) @$(MakeDirCommand) $(@D)
@echo "" > $(IntermediateDirectory)/.d @echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList) @echo $(Objects0) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions) $(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
".build-debug\UOCContacts": ".build-release/UOCContacts":
@$(MakeDirCommand) ".build-debug" @$(MakeDirCommand) ".build-release"
@echo stam > ".build-debug\UOCContacts" @echo stam > ".build-release/UOCContacts"
MakeIntermediateDirs: MakeIntermediateDirs:
@$(MakeDirCommand) "./bin/Debug" @test -d ./bin/Release || $(MakeDirCommand) ./bin/Release
$(IntermediateDirectory)/.d: $(IntermediateDirectory)/.d:
@$(MakeDirCommand) "./bin/Debug" @test -d ./bin/Release || $(MakeDirCommand) ./bin/Release
PreBuild: PreBuild:
@ -100,44 +98,36 @@ PreBuild:
## ##
## Objects ## Objects
## ##
$(IntermediateDirectory)/src_main.c$(ObjectSuffix): src/main.c $(IntermediateDirectory)/src_main.c$(DependSuffix) $(IntermediateDirectory)/test_src_test.c$(ObjectSuffix): test/src/test.c
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/src/main.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_main.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_main.c$(DependSuffix): src/main.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_main.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_main.c$(DependSuffix) -MM src/main.c
$(IntermediateDirectory)/src_main.c$(PreprocessSuffix): src/main.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_main.c$(PreprocessSuffix) src/main.c
$(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix): test/src/test_suite.c $(IntermediateDirectory)/test_src_test_suite.c$(DependSuffix)
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/test/src/test_suite.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/test_src_test_suite.c$(DependSuffix): test/src/test_suite.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test_suite.c$(DependSuffix) -MM test/src/test_suite.c
$(IntermediateDirectory)/test_src_test_suite.c$(PreprocessSuffix): test/src/test_suite.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test_suite.c$(PreprocessSuffix) test/src/test_suite.c
$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix): test/src/test.c $(IntermediateDirectory)/test_src_test.c$(DependSuffix)
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/test/src/test.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/test_src_test.c$(DependSuffix): test/src/test.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test.c$(DependSuffix) -MM test/src/test.c @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test.c$(DependSuffix) -MM test/src/test.c
$(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/test/src/test.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/test_src_test.c$(PreprocessSuffix): test/src/test.c $(IntermediateDirectory)/test_src_test.c$(PreprocessSuffix): test/src/test.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test.c$(PreprocessSuffix) test/src/test.c $(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test.c$(PreprocessSuffix) test/src/test.c
$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix): test/src/test_pr1.c $(IntermediateDirectory)/test_src_test_pr1.c$(DependSuffix) $(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix): test/src/test_suite.c
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/test/src/test_pr1.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) $(IncludePath) @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test_suite.c$(DependSuffix) -MM test/src/test_suite.c
$(IntermediateDirectory)/test_src_test_pr1.c$(DependSuffix): test/src/test_pr1.c $(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/test/src/test_suite.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test_suite.c$(ObjectSuffix) $(IncludePath)
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test_pr1.c$(DependSuffix) -MM test/src/test_pr1.c $(IntermediateDirectory)/test_src_test_suite.c$(PreprocessSuffix): test/src/test_suite.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test_suite.c$(PreprocessSuffix) test/src/test_suite.c
$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix): test/src/test_pr1.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) -MF$(IntermediateDirectory)/test_src_test_pr1.c$(DependSuffix) -MM test/src/test_pr1.c
$(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/test/src/test_pr1.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/test_src_test_pr1.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/test_src_test_pr1.c$(PreprocessSuffix): test/src/test_pr1.c $(IntermediateDirectory)/test_src_test_pr1.c$(PreprocessSuffix): test/src/test_pr1.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test_pr1.c$(PreprocessSuffix) test/src/test_pr1.c $(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/test_src_test_pr1.c$(PreprocessSuffix) test/src/test_pr1.c
$(IntermediateDirectory)/src_main.c$(ObjectSuffix): src/main.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_main.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_main.c$(DependSuffix) -MM src/main.c
$(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/src/main.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_main.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_main.c$(PreprocessSuffix): src/main.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_main.c$(PreprocessSuffix) src/main.c
-include $(IntermediateDirectory)/*$(DependSuffix) -include $(IntermediateDirectory)/*$(DependSuffix)
## ##
## Clean ## Clean
## ##
clean: clean:
$(RM) -r ./bin/Debug/ $(RM) -r ./bin/Release/

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<CodeLite_Project Name="UOC20211" Version="10.0.0" InternalType="Console"> <CodeLite_Project Name="UOC20211" Version="11000" InternalType="Console">
<Plugins> <Plugins>
<Plugin Name="qmake"> <Plugin Name="qmake">
<![CDATA[00020001N0005Debug0000000000000001N0007Release000000000000]]> <![CDATA[00020001N0005Debug0000000000000001N0007Release000000000000]]>

View file

@ -1 +1 @@
./bin/Debug/src_main.c.o ./bin/Debug/test_src_test_suite.c.o ./bin/Debug/test_src_test.c.o ./bin/Debug/test_src_test_pr1.c.o ./bin/Release/test_src_test.c.o ./bin/Release/test_src_test_suite.c.o ./bin/Release/test_src_test_pr1.c.o ./bin/Release/src_main.c.o

View file

@ -3,7 +3,7 @@
<Project Name="UOC20211" Path="UOC20211.project" Active="Yes"/> <Project Name="UOC20211" Path="UOC20211.project" Active="Yes"/>
<Project Name="UOCContacts" Path="UOCContacts/UOCContacts.project"/> <Project Name="UOCContacts" Path="UOCContacts/UOCContacts.project"/>
<BuildMatrix> <BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes"> <WorkspaceConfiguration Name="Debug" Selected="no">
<Environment/> <Environment/>
<Project Name="UOC20211" ConfigName="Debug"/> <Project Name="UOC20211" ConfigName="Debug"/>
<Project Name="UOCContacts" ConfigName="Debug"/> <Project Name="UOCContacts" ConfigName="Debug"/>

View file

@ -2,21 +2,21 @@
## Auto Generated makefile by CodeLite IDE ## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased ## any manual changes will be erased
## ##
## Debug ## Release
ProjectName :=UOCContacts ProjectName :=UOCContacts
ConfigurationName :=Debug ConfigurationName :=Release
WorkspacePath :=W:/Docencia/PP/20211/PR1/UOC20211 WorkspacePath :=/dades/git/UOC/PP/PR1/UOC20211
ProjectPath :=W:/Docencia/PP/20211/PR1/UOC20211/UOCContacts ProjectPath :=/dades/git/UOC/PP/PR1/UOC20211/UOCContacts
IntermediateDirectory :=../bin/Debug IntermediateDirectory :=../bin/Release
OutDir := $(IntermediateDirectory) OutDir := $(IntermediateDirectory)
CurrentFileName := CurrentFileName :=
CurrentFilePath := CurrentFilePath :=
CurrentFileFullPath := CurrentFileFullPath :=
User :=xavie User :=Guillem
Date :=11/10/2021 Date :=19/10/21
CodeLitePath :="C:/Program Files/CodeLite" CodeLitePath :=/home/guillem/.codelite
LinkerName :=C:/TDM-GCC-64/bin/g++.exe LinkerName :=/usr/bin/g++
SharedObjectLinkerName :=C:/TDM-GCC-64/bin/g++.exe -shared -fPIC SharedObjectLinkerName :=/usr/bin/g++ -shared -fPIC
ObjectSuffix :=.o ObjectSuffix :=.o
DependSuffix :=.o.d DependSuffix :=.o.d
PreprocessSuffix :=.i PreprocessSuffix :=.i
@ -27,16 +27,14 @@ OutputSwitch :=-o
LibraryPathSwitch :=-L LibraryPathSwitch :=-L
PreprocessorSwitch :=-D PreprocessorSwitch :=-D
SourceSwitch :=-c SourceSwitch :=-c
OutputFile :=../lib/lib$(ProjectName)d.a OutputFile :=../lib/lib$(ProjectName).a
Preprocessors := Preprocessors :=
ObjectSwitch :=-o ObjectSwitch :=-o
ArchiveOutputSwitch := ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E PreprocessOnlySwitch :=-E
ObjectsFileList :="UOCContacts.txt" ObjectsFileList :="UOCContacts.txt"
PCHCompileFlags := PCHCompileFlags :=
MakeDirCommand :=makedir MakeDirCommand :=mkdir -p
RcCmpOptions :=
RcCompilerName :=C:/TDM-GCC-64/bin/windres.exe
LinkOptions := LinkOptions :=
IncludePath := $(IncludeSwitch). $(IncludeSwitch). $(IncludeSwitch)include IncludePath := $(IncludeSwitch). $(IncludeSwitch). $(IncludeSwitch)include
IncludePCH := IncludePCH :=
@ -49,20 +47,20 @@ LibPath := $(LibraryPathSwitch).
## Common variables ## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables ## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
## ##
AR := C:/TDM-GCC-64/bin/ar.exe rcu AR := /usr/bin/ar rcu
CXX := C:/TDM-GCC-64/bin/g++.exe CXX := /usr/bin/g++
CC := C:/TDM-GCC-64/bin/gcc.exe CC := /usr/bin/gcc
CXXFLAGS := -g $(Preprocessors) CXXFLAGS := $(Preprocessors)
CFLAGS := -g $(Preprocessors) CFLAGS := $(Preprocessors)
ASFLAGS := ASFLAGS :=
AS := C:/TDM-GCC-64/bin/as.exe AS := /usr/bin/as
## ##
## User defined environment variables ## User defined environment variables
## ##
CodeLiteDir:=C:\Program Files\CodeLite CodeLiteDir:=/usr/share/codelite
Objects0=$(IntermediateDirectory)/src_date.c$(ObjectSuffix) $(IntermediateDirectory)/src_person.c$(ObjectSuffix) $(IntermediateDirectory)/src_csv.c$(ObjectSuffix) $(IntermediateDirectory)/src_api.c$(ObjectSuffix) Objects0=$(IntermediateDirectory)/src_api.c$(ObjectSuffix) $(IntermediateDirectory)/src_person.c$(ObjectSuffix) $(IntermediateDirectory)/src_csv.c$(ObjectSuffix) $(IntermediateDirectory)/src_date.c$(ObjectSuffix)
@ -78,16 +76,16 @@ $(OutputFile): $(Objects)
@$(MakeDirCommand) $(@D) @$(MakeDirCommand) $(@D)
@echo "" > $(IntermediateDirectory)/.d @echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList) @echo $(Objects0) > $(ObjectsFileList)
$(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList) $(ArLibs) $(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList)
@$(MakeDirCommand) "W:\Docencia\PP\20211\PR1\UOC20211/.build-debug" @$(MakeDirCommand) "/dades/git/UOC/PP/PR1/UOC20211/.build-release"
@echo rebuilt > "W:\Docencia\PP\20211\PR1\UOC20211/.build-debug/UOCContacts" @echo rebuilt > "/dades/git/UOC/PP/PR1/UOC20211/.build-release/UOCContacts"
MakeIntermediateDirs: MakeIntermediateDirs:
@$(MakeDirCommand) "../bin/Debug" @test -d ../bin/Release || $(MakeDirCommand) ../bin/Release
../bin/Debug: ../bin/Release:
@$(MakeDirCommand) "../bin/Debug" @test -d ../bin/Release || $(MakeDirCommand) ../bin/Release
PreBuild: PreBuild:
@ -95,37 +93,29 @@ PreBuild:
## ##
## Objects ## Objects
## ##
$(IntermediateDirectory)/src_date.c$(ObjectSuffix): src/date.c $(IntermediateDirectory)/src_date.c$(DependSuffix) $(IntermediateDirectory)/src_api.c$(ObjectSuffix): src/api.c
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/UOCContacts/src/date.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_date.c$(ObjectSuffix) $(IncludePath) @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_api.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_api.c$(DependSuffix) -MM src/api.c
$(IntermediateDirectory)/src_date.c$(DependSuffix): src/date.c $(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/src/api.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_api.c$(ObjectSuffix) $(IncludePath)
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_date.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_date.c$(DependSuffix) -MM src/date.c $(IntermediateDirectory)/src_api.c$(PreprocessSuffix): src/api.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_api.c$(PreprocessSuffix) src/api.c
$(IntermediateDirectory)/src_date.c$(PreprocessSuffix): src/date.c $(IntermediateDirectory)/src_person.c$(ObjectSuffix): src/person.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_date.c$(PreprocessSuffix) src/date.c
$(IntermediateDirectory)/src_person.c$(ObjectSuffix): src/person.c $(IntermediateDirectory)/src_person.c$(DependSuffix)
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/UOCContacts/src/person.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_person.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_person.c$(DependSuffix): src/person.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_person.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_person.c$(DependSuffix) -MM src/person.c @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_person.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_person.c$(DependSuffix) -MM src/person.c
$(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/src/person.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_person.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_person.c$(PreprocessSuffix): src/person.c $(IntermediateDirectory)/src_person.c$(PreprocessSuffix): src/person.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_person.c$(PreprocessSuffix) src/person.c $(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_person.c$(PreprocessSuffix) src/person.c
$(IntermediateDirectory)/src_csv.c$(ObjectSuffix): src/csv.c $(IntermediateDirectory)/src_csv.c$(DependSuffix) $(IntermediateDirectory)/src_csv.c$(ObjectSuffix): src/csv.c
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/UOCContacts/src/csv.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_csv.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_csv.c$(DependSuffix): src/csv.c
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_csv.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_csv.c$(DependSuffix) -MM src/csv.c @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_csv.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_csv.c$(DependSuffix) -MM src/csv.c
$(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/src/csv.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_csv.c$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/src_csv.c$(PreprocessSuffix): src/csv.c $(IntermediateDirectory)/src_csv.c$(PreprocessSuffix): src/csv.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_csv.c$(PreprocessSuffix) src/csv.c $(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_csv.c$(PreprocessSuffix) src/csv.c
$(IntermediateDirectory)/src_api.c$(ObjectSuffix): src/api.c $(IntermediateDirectory)/src_api.c$(DependSuffix) $(IntermediateDirectory)/src_date.c$(ObjectSuffix): src/date.c
$(CC) $(SourceSwitch) "W:/Docencia/PP/20211/PR1/UOC20211/UOCContacts/src/api.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_api.c$(ObjectSuffix) $(IncludePath) @$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_date.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_date.c$(DependSuffix) -MM src/date.c
$(IntermediateDirectory)/src_api.c$(DependSuffix): src/api.c $(CC) $(SourceSwitch) "/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/src/date.c" $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_date.c$(ObjectSuffix) $(IncludePath)
@$(CC) $(CFLAGS) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_api.c$(ObjectSuffix) -MF$(IntermediateDirectory)/src_api.c$(DependSuffix) -MM src/api.c $(IntermediateDirectory)/src_date.c$(PreprocessSuffix): src/date.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_date.c$(PreprocessSuffix) src/date.c
$(IntermediateDirectory)/src_api.c$(PreprocessSuffix): src/api.c
$(CC) $(CFLAGS) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_api.c$(PreprocessSuffix) src/api.c
-include $(IntermediateDirectory)/*$(DependSuffix) -include $(IntermediateDirectory)/*$(DependSuffix)
@ -133,6 +123,6 @@ $(IntermediateDirectory)/src_api.c$(PreprocessSuffix): src/api.c
## Clean ## Clean
## ##
clean: clean:
$(RM) -r ../bin/Debug/ $(RM) -r ../bin/Release/

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<CodeLite_Project Name="UOCContacts" Version="10.0.0" InternalType="Library"> <CodeLite_Project Name="UOCContacts" Version="11000" InternalType="Library">
<Plugins> <Plugins>
<Plugin Name="qmake"> <Plugin Name="qmake">
<![CDATA[00020001N0005Debug0000000000000001N0007Release000000000000]]> <![CDATA[00020001N0005Debug0000000000000001N0007Release000000000000]]>
@ -82,6 +82,7 @@
<Configuration Name="Release" CompilerType="MinGW ( TDM-GCC-64 )" DebuggerType="GNU gdb debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> <Configuration Name="Release" CompilerType="MinGW ( TDM-GCC-64 )" DebuggerType="GNU gdb debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
<Compiler Options="" C_Options="" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> <Compiler Options="" C_Options="" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
<IncludePath Value="."/> <IncludePath Value="."/>
<IncludePath Value="include"/>
</Compiler> </Compiler>
<Linker Options="" Required="yes"/> <Linker Options="" Required="yes"/>
<ResourceCompiler Options="" Required="no"/> <ResourceCompiler Options="" Required="no"/>

View file

@ -1 +1 @@
../bin/Debug/src_date.c.o ../bin/Debug/src_person.c.o ../bin/Debug/src_csv.c.o ../bin/Debug/src_api.c.o ../bin/Release/src_api.c.o ../bin/Release/src_person.c.o ../bin/Release/src_csv.c.o ../bin/Release/src_date.c.o

View file

@ -0,0 +1,8 @@
-I/usr/include/c++/11
-I/usr/include/c++/11/x86_64-redhat-linux
-I/usr/include/c++/11/backward
-I/usr/lib/gcc/x86_64-redhat-linux/11/include
-I/usr/local/include
-I/usr/include
-I/dades/git/UOC/PP/PR1/UOC20211/UOCContacts
-I/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/include

1
bin/Debug/.d Normal file
View file

@ -0,0 +1 @@

BIN
bin/Debug/src_api.c.o Normal file

Binary file not shown.

6
bin/Debug/src_api.c.o.d Normal file
View file

@ -0,0 +1,6 @@
../bin/Debug/src_api.c.o: src/api.c include/csv.h include/api.h \
include/error.h include/csv.h
include/csv.h:
include/api.h:
include/error.h:
include/csv.h:

BIN
bin/Debug/src_csv.c.o Normal file

Binary file not shown.

2
bin/Debug/src_csv.c.o.d Normal file
View file

@ -0,0 +1,2 @@
../bin/Debug/src_csv.c.o: src/csv.c include/csv.h
include/csv.h:

BIN
bin/Debug/src_date.c.o Normal file

Binary file not shown.

2
bin/Debug/src_date.c.o.d Normal file
View file

@ -0,0 +1,2 @@
../bin/Debug/src_date.c.o: src/date.c include/date.h
include/date.h:

BIN
bin/Debug/src_main.c.o Normal file

Binary file not shown.

8
bin/Debug/src_main.c.o.d Normal file
View file

@ -0,0 +1,8 @@
bin/Debug/src_main.c.o: src/main.c test/include/test.h \
test/include/test_suite.h UOCContacts/include/api.h \
UOCContacts/include/error.h UOCContacts/include/csv.h
test/include/test.h:
test/include/test_suite.h:
UOCContacts/include/api.h:
UOCContacts/include/error.h:
UOCContacts/include/csv.h:

BIN
bin/Debug/src_person.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,5 @@
../bin/Debug/src_person.c.o: src/person.c include/person.h include/csv.h \
include/date.h
include/person.h:
include/csv.h:
include/date.h:

BIN
bin/Debug/test_src_test.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,5 @@
bin/Debug/test_src_test.c.o: test/src/test.c test/include/test.h \
test/include/test_suite.h test/include/test_pr1.h
test/include/test.h:
test/include/test_suite.h:
test/include/test_pr1.h:

Binary file not shown.

View file

@ -0,0 +1,9 @@
bin/Debug/test_src_test_pr1.c.o: test/src/test_pr1.c \
test/include/test_pr1.h test/include/test_suite.h \
UOCContacts/include/api.h UOCContacts/include/error.h \
UOCContacts/include/csv.h
test/include/test_pr1.h:
test/include/test_suite.h:
UOCContacts/include/api.h:
UOCContacts/include/error.h:
UOCContacts/include/csv.h:

Binary file not shown.

View file

@ -0,0 +1,3 @@
bin/Debug/test_src_test_suite.c.o: test/src/test_suite.c \
test/include/test_suite.h
test/include/test_suite.h:

1
bin/Release/.d Normal file
View file

@ -0,0 +1 @@

BIN
bin/Release/src_api.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,6 @@
../bin/Release/src_api.c.o: src/api.c include/csv.h include/api.h \
include/error.h include/csv.h
include/csv.h:
include/api.h:
include/error.h:
include/csv.h:

BIN
bin/Release/src_csv.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,2 @@
../bin/Release/src_csv.c.o: src/csv.c include/csv.h
include/csv.h:

BIN
bin/Release/src_date.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,2 @@
../bin/Release/src_date.c.o: src/date.c include/date.h
include/date.h:

BIN
bin/Release/src_main.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,8 @@
bin/Release/src_main.c.o: src/main.c test/include/test.h \
test/include/test_suite.h UOCContacts/include/api.h \
UOCContacts/include/error.h UOCContacts/include/csv.h
test/include/test.h:
test/include/test_suite.h:
UOCContacts/include/api.h:
UOCContacts/include/error.h:
UOCContacts/include/csv.h:

BIN
bin/Release/src_person.c.o Normal file

Binary file not shown.

View file

@ -0,0 +1,5 @@
../bin/Release/src_person.c.o: src/person.c include/person.h \
include/csv.h include/date.h
include/person.h:
include/csv.h:
include/date.h:

Binary file not shown.

View file

@ -0,0 +1,5 @@
bin/Release/test_src_test.c.o: test/src/test.c test/include/test.h \
test/include/test_suite.h test/include/test_pr1.h
test/include/test.h:
test/include/test_suite.h:
test/include/test_pr1.h:

Binary file not shown.

View file

@ -0,0 +1,9 @@
bin/Release/test_src_test_pr1.c.o: test/src/test_pr1.c \
test/include/test_pr1.h test/include/test_suite.h \
UOCContacts/include/api.h UOCContacts/include/error.h \
UOCContacts/include/csv.h
test/include/test_pr1.h:
test/include/test_suite.h:
UOCContacts/include/api.h:
UOCContacts/include/error.h:
UOCContacts/include/csv.h:

Binary file not shown.

View file

@ -0,0 +1,3 @@
bin/Release/test_src_test_suite.c.o: test/src/test_suite.c \
test/include/test_suite.h
test/include/test_suite.h:

BIN
bin/UOC20211 Executable file

Binary file not shown.

BIN
bin/UOC20211d Executable file

Binary file not shown.

6
bin/default_data.csv Normal file
View file

@ -0,0 +1,6 @@
PERSON;87654321K;John;Smith;john.smith@example.com;My street, 25;08001;30/12/1980
PERSON;98765432J;Jane;Doe;jane.doe@example.com;Her street, 5;08500;12/01/1995
GEOLOCATION;87654321K;15/10/2021;13:41;41.3870;2.1698
GEOLOCATION;87654321K;15/10/2021;13:45;41.3870;2.1695
GEOLOCATION;98765432J;15/10/2021;13:50;41.3871;2.1697
GEOLOCATION;87654321K;15/10/2021;13:50;41.3871;2.1697
1 PERSON;87654321K;John;Smith;john.smith@example.com;My street, 25;08001;30/12/1980
2 PERSON;98765432J;Jane;Doe;jane.doe@example.com;Her street, 5;08500;12/01/1995
3 GEOLOCATION;87654321K;15/10/2021;13:41;41.3870;2.1698
4 GEOLOCATION;87654321K;15/10/2021;13:45;41.3870;2.1695
5 GEOLOCATION;98765432J;15/10/2021;13:50;41.3871;2.1697
6 GEOLOCATION;87654321K;15/10/2021;13:50;41.3871;2.1697

10
compile_flags.txt Normal file
View file

@ -0,0 +1,10 @@
-I/usr/include/c++/11
-I/usr/include/c++/11/x86_64-redhat-linux
-I/usr/include/c++/11/backward
-I/usr/lib/gcc/x86_64-redhat-linux/11/include
-I/usr/local/include
-I/usr/include
-I/dades/git/UOC/PP/PR1/UOC20211
-I/dades/git/UOC/PP/PR1/UOC20211/test/include
-I/dades/git/UOC/PP/PR1/UOC20211/UOCContacts/include
-DNDEBUG

BIN
lib/libUOCContacts.a Normal file

Binary file not shown.

BIN
lib/libUOCContactsd.a Normal file

Binary file not shown.

0
tags Normal file
View file