X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2FMakefile;h=0b96b41a16e61e1a4b29348345f8afd847f4a6cd;hb=883427014d5349442395c1059af5a1abade951ad;hp=cf4e67474bf7817aa8da742dffa357bc6fe6d522;hpb=ae4849d11f804c0ea6c7ad4aea8a37702f3dd296;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/Makefile b/c/pthread_extra/Makefile index cf4e674..0b96b41 100644 --- a/c/pthread_extra/Makefile +++ b/c/pthread_extra/Makefile @@ -1,4 +1,4 @@ -COPT=-O2 -flto -ftree-vectorize -ftree-slp-vectorize -fvisibility=hidden -D_FORTIFY_SOURCE=2 -DMG_ENABLE_FS=0 -fstack-protector-strong -fno-delete-null-pointer-checks $(CARCH) +COPT=-g -O2 -flto -ftree-vectorize -ftree-slp-vectorize -fvisibility=hidden -D_FORTIFY_SOURCE=2 -DMG_ENABLE_FS=0 -fstack-protector-strong -fno-delete-null-pointer-checks $(CARCH) #COPT=-fvisibility=hidden -DMG_ENABLE_FS=0 -fstack-protector-strong $(CARCH) CDEF=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE CERR=-Wall -Wextra -Werror -pedantic -Werror=date-time -Wformat-security -Wduplicated-cond -Wfloat-equal -Wshadow -Wlogical-not-parentheses -Wnull-dereference @@ -11,14 +11,14 @@ CXXFLAGS+=$(COPT) $(CERR) $(CDEF) -std=c++11 $(CLIB) LDFLAGS+=$(COPT) $(LIB) BIN=test -OBJ=pthread_pause.o pthread_multi.o pthread_msgqueue.o test.o +OBJ=pthread_user_data.o pthread_pause.o pthread_multi.o pthread_msgqueue.o test.o all: $(BIN) $(BIN): $(OBJ) $(CXX) -o $(BIN) $(OBJ) $(LDFLAGS) strip --strip-unneeded $(BIN) - gcc -lpthread -I . test_pause.c pthread_pause.o -o test_pause + gcc -lpthread -I . test_pause.c pthread_user_data.o pthread_pause.o -o test_pause clean: rm -f $(BIN) $(OBJ) $(DEPS)