diff --git a/Makefile b/Makefile index e2979ccbd4223c715b97c32b794cab54bedf8c15..e94071e4c9850bddb4e56c89f3527e17c6769a07 100644 --- a/Makefile +++ b/Makefile @@ -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."