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