mirror of
https://github.com/eddyem/zerndeco.git
synced 2026-03-21 09:11:01 +03:00
copy
This commit is contained in:
24
Makefile
Normal file
24
Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
# run `make DEF=...` to add extra defines
|
||||
OUT = zerndeco
|
||||
LDFLAGS = -lm -lgsl -lgslcblas -lpng -lcfitsio -fopenmp
|
||||
SRCS = $(wildcard *.c)
|
||||
CC = gcc
|
||||
DEFINES = $(DEF) -D_GNU_SOURCE -DEBUG
|
||||
CFLAGS = -std=gnu99 -fopenmp -Wall -Werror -Wextra $(DEFINES)
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
all : $(OUT)
|
||||
|
||||
$(OUT) : $(OBJS)
|
||||
$(CC) $(OBJS) $(LDFLAGS) -o $(OUT)
|
||||
|
||||
$(SRCS) : %.c : %.h $(INDEPENDENT_HEADERS)
|
||||
touch $@
|
||||
|
||||
%.h: ;
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o *~
|
||||
|
||||
depend:
|
||||
$(CC) -MM $(SRCS)
|
||||
Reference in New Issue
Block a user