X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=c%2Fpthread_extra%2FMakefile;h=1197cca9d85dcaa98a655dba50a5528a4fa8feb4;hb=24286ba9a7ae3a8c6f5eefe9455e18bd758e742b;hp=7668a2cee2af0db05160202e67e1aca2e3125f7b;hpb=5251b63c80878b87d8cb808efd3978bd819c4f8b;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/Makefile b/c/pthread_extra/Makefile index 7668a2c..1197cca 100644 --- a/c/pthread_extra/Makefile +++ b/c/pthread_extra/Makefile @@ -1,5 +1,5 @@ -#COPT=-O2 -flto -ftree-vectorize -ftree-slp-vectorize -fvisibility=hidden -D_FORTIFY_SOURCE=2 -DMG_ENABLE_FS=0 -fstack-protector-strong $(CARCH) -COPT=-fvisibility=hidden -DMG_ENABLE_FS=0 -fstack-protector-strong $(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=-g -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,13 +11,15 @@ CXXFLAGS+=$(COPT) $(CERR) $(CDEF) -std=c++11 $(CLIB) LDFLAGS+=$(COPT) $(LIB) BIN=test -OBJ=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_user_data.o pthread_pause.o -o test_pause + clean: rm -f $(BIN) $(OBJ) $(DEPS)