シャープ向けMakefile.sharpを現在の最新状態に対応させる。

main.cから不要なopensslヘッダを削除。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@159 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
(no author) 2010-01-08 02:36:23 +00:00
parent f937bfed91
commit 2967910984
2 changed files with 16 additions and 25 deletions

View File

@ -1,32 +1,29 @@
# OPENSSL_DIR = ../openssl-1.0.0-beta2
OPENSSL_DIR = ../openssl-0.9.8k
SFMT_DIR = ../SFMT-src-1.3.3
# Linux 上でビルドする場合は、DEV_CYGWINをコメントアウトしてください。
DEV_CYGWIN = TRUE
USE_SFMT = TRUE
TARGET = gen_id
TARGET = gen_id
SRCS = main.c cr_generate_id.c cr_alloc.c cr_gen_id_rsa_key_priv.c cr_gen_id_rsa_key_pub.c $(SFMT_DIR)/SFMT.c
SRCS = main.c
OBJS = $(notdir $(SRCS:.c=.o))
CC := C:/Cygwin/bin/gcc
ifeq ($(DEV_CYGWIN),TRUE)
CFLAGS = -mno-cygwin -Wall
CC := C:/Cygwin/bin/gcc
LD = C:/Cygwin/bin/gcc
CFLAGS += -mno-cygwin -DDEV_CYGWIN -Wall -I./
LDFLAGS += -Wl,--subsystem,console -mwindows -mno-cygwin -L./
LDLIBS += -l_gen_id
ifeq ($(USE_SFMT),TRUE)
CFLAGS += -DUSE_SFMT -DMEXP=216091 -msse2 -DHAVE_SSE2
endif
else # DEV_CYGWIN
CPPFLAGS= -I. -I$(OPENSSL_DIR)/include -I$(OPENSSL_DIR)/crypto/ec -I$(SFMT_DIR)
LD = C:/Cygwin/bin/gcc
LDFLAGS = -Wl,--subsystem,console -mwindows -mno-cygwin -L$(OPENSSL_DIR)
LDLIBS = -lcrypto -lssl
CC := /usr/bin/gcc
LD = /usr/bin/gcc
LDFLAGS += -Wl -L./
LDLIBS += -ldl -lnsl -l_gen_id
endif # DEV_CYGWIN
.SUFFIXES:
@ -35,11 +32,6 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -o $@ $(LDLIBS)
$(OBJS): $(HEADS) Makefile
%.o:$(SFMT_DIR)/%.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
%.o:%.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@

1
main.c
View File

@ -5,7 +5,6 @@
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <openssl/err.h>
#ifdef DEV_CYGWIN
#include <conio.h>