X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=5d1209e3b4a7852dee5fdbdf764ffdcf356178f6;hb=10592c71e9df8aa493b039873a7668b09e974a9c;hp=8e18fe3d14a0d2ba3e96aed6d9825b010d038901;hpb=5b1410b3fc2ceb4dc75d0c462d630208cfa9b3f3;p=selector.git diff --git a/Makefile b/Makefile index 8e18fe3..5d1209e 100644 --- a/Makefile +++ b/Makefile @@ -26,20 +26,20 @@ MAN_PATH = /usr/share/man/man1 LDFLAGS=-lcurses -REVISION_NUMBER=$(shell cat REVISION_NUMBER) +REVISION_NUMBER=\"$(shell cat REVISION_NUMBER)\" ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer else - OPTIMIZE_FLAG = -ggdb3 -O3 + OPTIMIZE_FLAG = -O2 endif -CXXFLAGS = -DREVISION_NUMBER=$(REVISION_NUMBER) -Wall $(OPTIMIZE_FLAG) +CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER=$(REVISION_NUMBER) $(OPTIMIZE_FLAG) all: selector selector: selector.o - $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) + $(CC) -o $@ $^ $(LDFLAGS) install: selector install -m 755 selector $(BINARY_PATH)