CC = gcc
LD = gcc
-CFLAGS = -Wall -O4 -c
+CFLAGS = -std=c99 -Wall -O3 -c
LDFLAGS =
OBJS = crypto1.o crapto1.o
HEADERS = crapto1.h
EXES = nonce2key
-WINEXES = nonce2key.exe
+WINEXES = $(patsubst %, %.exe, $(EXES))
all: $(OBJS) $(EXES)
%.o : %.c
- $(CC) $(CFLAGS) -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
% : %.c
$(LD) $(LDFLAGS) -o $@ $(OBJS) $<