sssms2

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.inz.fi/sssms2/
Log | Files | Refs

Makefile (358B)


      1 TARGET := sssms2
      2 CFLAGS := -O3 -pthread
      3 LDFLAGS := -lm -pthread
      4 SOURCES := sssms2.c
      5 OBJS := ${SOURCES:.c=.o}
      6 
      7 
      8 ${TARGET}: ${OBJS}
      9 	${CC} -o ${TARGET} ${OBJS} ${LDFLAGS}
     10 
     11 .c.o:
     12 	${CC} ${CFLAGS} -c $< -o $@
     13 
     14 test: ${TARGET}
     15 	@time ./${TARGET} 1 50000 | diff -u test/test.output -
     16 
     17 clean:
     18 	rm -f ${OBJS}
     19 
     20 distclean: clean
     21 	rm ${TARGET} *~
     22 
     23 .POSIX:
     24 .PHONY: test