89f37bea8c
* Improved SCSI emulation * Various small fixes OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=7
21 lines
471 B
Plaintext
21 lines
471 B
Plaintext
diff --git a/usr/Makefile b/usr/Makefile
|
|
index 64cb58c..deb7e39 100644
|
|
--- a/usr/Makefile
|
|
+++ b/usr/Makefile
|
|
@@ -28,12 +28,15 @@ INCLUDES += -I.
|
|
|
|
CFLAGS += -D_GNU_SOURCE
|
|
CFLAGS += $(INCLUDES)
|
|
+ifneq ($(OPTFLAGS),)
|
|
+CFLAGS += $(OPTFLAGS)
|
|
ifneq ($(DEBUG),)
|
|
CFLAGS += -g -O0 -ggdb -rdynamic
|
|
else
|
|
CFLAGS += -g -O2 -fno-strict-aliasing
|
|
endif
|
|
CFLAGS += -Wall -Wstrict-prototypes -fPIC
|
|
+endif
|
|
CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
|
|
|
|
LIBS += -lpthread
|