This commit is contained in:
eddyem
2016-07-14 09:47:49 +03:00
parent 673b42a07f
commit abee079d26
25 changed files with 4693 additions and 0 deletions

24
Makefile Normal file
View 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)