From e1095e8a2f25b06db3cd3dcf147fc40641cdba36 Mon Sep 17 00:00:00 2001 From: kubodera_yuichi Date: Fri, 8 Jan 2010 06:25:59 +0000 Subject: [PATCH] =?UTF-8?q?Makefile=E3=81=A7cygwin=E3=81=A8linux=E3=81=A7?= =?UTF-8?q?=E3=82=BF=E3=83=BC=E3=82=B2=E3=83=83=E3=83=88=E3=81=AB=E6=8B=A1?= =?UTF-8?q?=E5=BC=B5=E5=AD=90=E3=81=AE=E6=9C=89=E7=84=A1=E3=81=AE=E9=81=95?= =?UTF-8?q?=E3=81=84=E3=81=8C=E3=81=82=E3=82=8B=E3=81=AE=E3=82=92=E5=90=B8?= =?UTF-8?q?=E5=8F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@161 ff987cc8-cf2f-4642-8568-d52cce064691 --- Makefile | 6 ++++-- Makefile.sharp | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d06b182..af60ab5 100644 --- a/Makefile +++ b/Makefile @@ -105,11 +105,13 @@ CC := C:/Cygwin/bin/gcc LD = C:/Cygwin/bin/gcc CFLAGS += -mno-cygwin -DDEV_CYGWIN LDFLAGS += -Wl,--subsystem,console -mno-cygwin +TARGET_DEL = $(TARGET).exe else # DEV_CYGWIN CC := /usr/bin/gcc LD = /usr/bin/gcc LDFLAGS += -Wl LDLIBS += -ldl -lnsl +TARGET_DEL = $(TARGET) endif # DEV_CYGWIN ifeq ($(USE_DUMMY_KEY),TRUE) @@ -191,9 +193,9 @@ cr_NCT2_pub_dev.c : $(DEV_DER_KEY_DIR)/NCT2_pub.der .PHONY: clean clobber clean: - $(RM) $(LIB_OBJS) $(OBJS) $(TARGET).exe $(TARGET_LIB) $(KEYS_C) $(KEYS_H) + $(RM) $(LIB_OBJS) $(OBJS) $(TARGET_DEL) $(TARGET_LIB) $(KEYS_C) $(KEYS_H) clobber: - $(RM) $(LIB_OBJS) $(OBJS) $(TARGET).exe $(TARGET_LIB) $(KEYS_C) $(KEYS_H) + $(RM) $(LIB_OBJS) $(OBJS) $(TARGET_DEL) $(TARGET_LIB) $(KEYS_C) $(KEYS_H) cd $(PACKAGE_DIR);make clobber diff --git a/Makefile.sharp b/Makefile.sharp index 762787f..93a316a 100644 --- a/Makefile.sharp +++ b/Makefile.sharp @@ -15,6 +15,7 @@ LD = C:/Cygwin/bin/gcc CFLAGS += -mno-cygwin -DDEV_CYGWIN -Wall -I./ LDFLAGS += -Wl,--subsystem,console -mwindows -mno-cygwin -L./ LDLIBS += -l_gen_id +TARGET_DEL = $(TARGET).exe else # DEV_CYGWIN @@ -22,6 +23,7 @@ CC := /usr/bin/gcc LD = /usr/bin/gcc LDFLAGS += -Wl -L./ LDLIBS += -ldl -lnsl -l_gen_id +TARGET_DEL = $(TARGET) endif # DEV_CYGWIN @@ -37,6 +39,6 @@ $(TARGET): $(OBJS) .PHONY: clean clobber clean clobber: - $(RM) $(OBJS) $(TARGET).exe + $(RM) $(OBJS) $(TARGET_DEL)