From d415e5cbaf81dac7ca8f0f83031b4a0382517c90 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 9 Nov 2013 18:05:59 +0900 Subject: [PATCH] cleanup Makefile --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 2e8f10b6..1ae45900 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,11 @@ CC=gcc CFLAGS=-Wall -O3 -UNAME_S := $(shell uname -s) -SO_PREFIX=lib -SO_EXT=.so +PICRIN_LIB=libpicrin.so -ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN) - SO_PREFIX=cyg - SO_EXT=.dll +ifeq ($(findstring CYGWIN,$(shell uname -s)), CYGWIN) + PICRIN_LIB =cygpicrin.dll endif -PICRIN_LIB=$(SO_PREFIX)picrin$(SO_EXT) - all: build-debug run release: CFLAGS += -DDEBUG=0 @@ -33,7 +28,7 @@ build-lib: clean: rm -f src/y.tab.c src/y.tab.h src/lex.yy.c - rm -f lib/$(PICRIN_LIB) + rm -f lib/$(PICRIN_LIB) bin/$(PICRIN_LIB) rm -f bin/picrin run: