mirror of
https://github.com/eddyem/BTA_utils.git
synced 2026-03-20 08:41:01 +03:00
fits_headers
This commit is contained in:
25
fits_headers/Makefile
Normal file
25
fits_headers/Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
# run `make DEF=...` to add extra defines
|
||||
PROGRAM = getangle
|
||||
LDFLAGS = -lm
|
||||
SRCS = $(wildcard *.c)
|
||||
CC = gcc
|
||||
DEFINES = $(DEF) -D_XOPEN_SOURCE=1111
|
||||
#CXX = gcc
|
||||
CFLAGS = -Wall -Werror -Wextra $(DEFINES)
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
all : $(PROGRAM)
|
||||
$(PROGRAM) : $(OBJS)
|
||||
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $(PROGRAM)
|
||||
|
||||
# some addition dependencies
|
||||
# %.o: %.c
|
||||
# $(CC) $(CFLAGS) $< -o $@
|
||||
#$(SRCS) : %.c : %.h $(INDEPENDENT_HEADERS)
|
||||
# @touch $@
|
||||
#
|
||||
#%.h: ;
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o *~
|
||||
depend:
|
||||
$(CC) -MM $(SRCS)
|
||||
Reference in New Issue
Block a user