diff Makefile @ 32:c96f2b26678a

misc: general cleanups - Remove C++ variant, - Remove Doxygen, - Improve README, - Upgrade license years.
author David Demelier <markand@malikania.fr>
date Wed, 02 Jun 2021 15:59:46 +0200
parents 16f64f665b1d
children 01c29bee0c54
line wrap: on
line diff
--- a/Makefile	Wed Jun 02 15:48:33 2021 +0200
+++ b/Makefile	Wed Jun 02 15:59:46 2021 +0200
@@ -19,40 +19,26 @@
 .POSIX:
 
 CC=             cc
-CXX=            c++
 CFLAGS=         -O3 -DNDEBUG -Wall -Wextra
-CXXFLAGS=       -std=c++17 -O3 -DNDEBUG -Wall -Wextra
 
 .SUFFIXES:
-.SUFFIXES: .c .cpp .o
+.SUFFIXES: .c .o
 
-all:
+all: test/base64
 
 .c.o:
 	${CC} ${CFLAGS} -Iextern/libgreatest -I. -c $< -o $@ ${LDFLAGS}
 
-.cpp.o:
-	${CXX} ${CXXFLAGS} -Iextern/libgreatest -I. -c $< -o $@ ${LDFLAGS}
-
 test/base64.o: base64.h
 
 test/base64: test/base64.o base64.o
-	${CC} -o $@ test/base64.o base64.o ${LDFLAGS}
-
-test/base64++.o: base64.hpp
-
-test/base64++: test/base64++.o
-	${CXX} -o $@ test/base64++.o ${LDFLAGS}
+	${CC} ${CFLAGS} -o $@ test/base64.o base64.o ${LDFLAGS}
 
-tests: test/base64 test/base64++
+tests: test/base64
 	test/base64
-	test/base64++
-
-doxygen:
-	doxygen Doxyfile
 
 clean:
 	rm -f *.o test/*.o
-	rm -f test/base64 test/base64++
+	rm -f test/base64
 
-.PHONY: all clean doxygen tests
+.PHONY: all clean tests