Skip to content

Commit

Permalink
fixed a error on cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
G4burieru committed Oct 26, 2023
1 parent 9e1a675 commit 9d1d90d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CPP_SOURCE=$(wildcard ./source/*.cpp)
H_SOURCE=$(wildcard ./source/*.h)

# Object files
OBJ=$(subst .cpp,.o,$(subst source,objects,$(CPP_SOURCE)))
OBJ=$(subst .cpp,.o,$(subst source,objetos,$(CPP_SOURCE)))

# Compiler and linker
CC=g++
Expand All @@ -31,12 +31,12 @@ $(PROJ_NAME): $(OBJ)
@ echo 'Finished building binary: $@'
@ echo ' '

./objects/%.o: ./source/%.cpp ./source/%.h
./objetos/%.o: ./source/%.cpp ./source/%.h
@ echo 'Building target using G++ compiler: $<'
$(CC) $< $(CC_FLAGS) -o $@
@ echo ' '

./objects/main.o: ./source/main.cpp $(H_SOURCE)
./objetos/main.o: ./source/main.cpp $(H_SOURCE)
@ echo 'Building target using G++ compiler: $<'
$(CC) $< $(CC_FLAGS) -o $@
@ echo ' '
Expand Down

0 comments on commit 9d1d90d

Please sign in to comment.