Skip to content

Instantly share code, notes, and snippets.

@sjhalayka
Created March 26, 2025 15:47
Show Gist options
  • Save sjhalayka/a09768970378223fce5760279eb65d1b to your computer and use it in GitHub Desktop.
Save sjhalayka/a09768970378223fce5760279eb65d1b to your computer and use it in GitHub Desktop.
LDAK makefile
# Makefile for LDAK 6.1
# Compiler and flags
CC = gcc
CFLAGS = -O3 -fopenmp
LDFLAGS = -lblas -llapack -lm -lz
# Source and output files
SRC = ldak_nomkl.c
TARGET = ldak6.1
LIB = libqsopt.linux.a
# Default target
all: $(TARGET)
# Rule to build the executable
$(TARGET): $(SRC) $(LIB)
$(CC) $(CFLAGS) -o $@ $< $(LIB) $(LDFLAGS)
# Clean rule
clean:
rm -f $(TARGET)
# Phony targets
.PHONY: all clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment