Pawel Netzel - software
Repositories
Help
Report an Issue
plDarkSky
Code
Commits
Branches
Tags
Search
Tree:
96b390d
Branches
Tags
master
plDarkSky
Makefile
Minor changes in makefile(s)
netzel
commited
96b390d
at 2024-05-16 14:28:21
Makefile
Blame
History
Raw
PROG = pldarksky CC = gcc CFLAGS=-Wall -O3 -fopenmp -msse2 -mfpmath=sse -Wl,-rpath,'$$ORIGIN/' -I/usr/include/gdal LIBFLAGS = -lgdal -lezgdal -largtable3 -lm COMMON_C = $(shell ls *.c) COMMON_C_O = $(COMMON_C:%.c=%.o) HEADERS = $(shell ls *.h) ifndef PREFIX PREFIX = /usr/local endif default: $(PROG) $(PROG): $(COMMON_C_O) $(HEADERS) $(CC) $(CFLAGS) -o $(PROG) $(COMMON_O) $(COMMON_C_O) $(LIBFLAGS) $(COMMON_C_O): $(COMMON_C) $(HEADERS_C) $(CC) $(CFLAGS) -c $(COMMON_C) $(LIBFLAGS) install: cp -f $(PROG) $(PREFIX)/bin clean: rm -f *.o $(PROG)