Created
March 26, 2025 15:47
-
-
Save sjhalayka/a09768970378223fce5760279eb65d1b to your computer and use it in GitHub Desktop.
LDAK makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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