DeDRM_tools/Kindle_Mobi_Tools/skindle-06/Makefile

24 lines
381 B
Makefile
Raw Normal View History

2009-12-29 05:02:00 +07:00
2010-01-03 03:21:06 +06:00
OBJS=skindle.o md5.o sha1.o b64.o skinutils.o cbuf.o mobi.o tpz.o
2009-12-29 05:02:00 +07:00
CC=gcc
LD=gcc
EXE=skindle
2010-01-03 03:21:06 +06:00
EXTRALIBS=libz.a -lCrypt32 -lAdvapi32
CFLAGS=-mno-cygwin
2009-12-29 05:02:00 +07:00
#use the following to strip your binary
2010-01-03 03:21:06 +06:00
LDFLAGS=-s -mno-cygwin
#LDFLAGS=-mno-cygwin
2009-12-29 05:02:00 +07:00
all: $(EXE)
%.o: %.c
2010-01-03 03:21:06 +06:00
$(CC) -c $(CFLAGS) -g $(INC) $< -o $@
2009-12-29 05:02:00 +07:00
$(EXE): $(OBJS)
2010-01-03 03:21:06 +06:00
$(LD) $(LDFLAGS) -o $@ -g $(OBJS) $(EXTRALIBS)
2009-12-29 05:02:00 +07:00
clean:
-@rm *.o