--- nono/lib/Makefile 2026/04/29 17:05:30 1.1.1.9 +++ nono/lib/Makefile 2026/04/29 17:05:39 1.1.1.10 @@ -12,9 +12,10 @@ TARGETS= libnnlib.a -CXXSRCS_lib= \ +CXXSRCS= \ bitmap.cpp \ bitops.cpp \ + classname.cpp \ config.cpp \ exttostr.cpp \ object.cpp \ @@ -31,24 +32,24 @@ CXXSRCS_lib= \ textscreen.cpp \ .if "${HOST_HAS_AVX2}" == "yes" -CXXSRCS_lib+= bitmap_avx2.cpp +CXXSRCS+= bitmap_avx2.cpp CXXFLAGS.bitmap_avx2.cpp+= -mavx2 .endif CXXSRCS_test= \ test_mystring.cpp \ -CXXSRCS= ${CXXSRCS_lib} ${CXXSRCS_test} +CXXSRCS_all= ${CXXSRCS} ${CXXSRCS_test} -OBJS_lib= ${CXXSRCS_lib:.cpp=.o} +OBJS= ${CXXSRCS:.cpp=.o} -libnnlib.a: ${OBJS_lib} +libnnlib.a: ${OBJS} rm -f $@ ${AR} r $@ $> ${RANLIB} $@ test_mystring: test_mystring.o libnnlib.a - ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} libnnlib.a + ${CXX} ${LDFLAGS} -o $@ $> ${LIBS} test_exttostr: exttostr.cpp mystring.o ${CXX} ${LDFLAGS} -I.. -DTEST -o $@ $>