cointoss/Makefile

25 lines
375 B
Makefile
Raw Normal View History

2014-10-30 16:19:33 +00:00
CXX=gcc
CXXFLAGS= -O3 -Wall -std=gnu99
MKDIR=mkdir -p
RM=rm -rf
LBITS := $(shell getconf LONG_BIT)
2014-10-30 16:19:33 +00:00
ifeq ($(LBITS),32)
all: compile32bit
else
all: compile64bit
endif
2014-10-30 16:19:33 +00:00
compile32bit:
$(MKDIR) bin/lin32/
$(CXX) $(CXXFLAGS) -m32 -o bin/lin32/cointoss src/main.c
2014-10-30 16:19:33 +00:00
compile64bit:
$(MKDIR) bin/lin64/
$(CXX) $(CXXFLAGS) -m64 -o bin/lin64/cointoss src/main.c
2014-10-30 16:19:33 +00:00
clean:
2014-10-30 16:19:33 +00:00
$(RM) bin