Skip to content
Snippets Groups Projects
Commit 5d03a8da authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

make remove and clean a bit more logical, add comments

parent eda26fb6
No related branches found
No related tags found
No related merge requests found
......@@ -18,27 +18,25 @@ $(BINDIR)/$(TARGET): $(BINDIR)
$(BINDIR):
mkdir -p $(BINDIR)
# Make binary linking .o files and libraries
$(BINDIR)/$(TARGET): $(OBJECTS)
@$(LINKER) $(OBJECTS) $(LFLAGS) -o $@
@echo "Linking complete."
## Compile an object for a c file in SRCDIR
# Compile an object for a c file in SRCDIR
$(OBJDIR)/%.o: $(SRCDIR)/%.c $(DEPS)
mkdir -p $(OBJDIR)
@$(CC) $(CFLAGS) -c $< -o $@
@echo "Compiled "$<" successfully."
cryptops-api:
echo "test"
echo $(DEPS)
# Remove intermediate files
.PHONY: clean
clean:
@rm -f $(OBJECTS)
@rm -rf $(OBJDIR)
@echo "Cleanup complete."
# Remove all compiled files
.PHONY: remove
remove: clean
@rm -f $(BINDIR)/$(TARGET)
@rm -rf $(BINDIR)
@echo "Executable removed."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment