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
All:
@echo "----------Building project:[ UOCContacts - Debug ]----------"
@echo "----------Building project:[ UOCContacts - Release ]----------"
@cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk"
@echo "----------Building project:[ UOC20211 - Debug ]----------"
@echo "----------Building project:[ UOC20211 - Release ]----------"
@"$(MAKE)" -f "UOC20211.mk"
clean:
@echo "----------Cleaning project:[ UOCContacts - Debug ]----------"
@echo "----------Cleaning project:[ UOCContacts - Release ]----------"
@cd "UOCContacts" && "$(MAKE)" -f "UOCContacts.mk" clean
@echo "----------Cleaning project:[ UOC20211 - Debug ]----------"
@echo "----------Cleaning project:[ UOC20211 - Release ]----------"
@"$(MAKE)" -f "UOC20211.mk" clean

View file

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

View file

@ -1,5 +1,5 @@
<?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>
<Plugin Name="qmake">
<![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="UOCContacts" Path="UOCContacts/UOCContacts.project"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes">
<WorkspaceConfiguration Name="Debug" Selected="no">
<Environment/>
<Project Name="UOC20211" ConfigName="Debug"/>
<Project Name="UOCContacts" ConfigName="Debug"/>

View file

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

View file

@ -1,5 +1,5 @@
<?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>
<Plugin Name="qmake">
<![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">
<Compiler Options="" C_Options="" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
<IncludePath Value="."/>
<IncludePath Value="include"/>
</Compiler>
<Linker Options="" Required="yes"/>
<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