DeDRM_tools/skindle/Makefile

24 lines
381 B
Makefile
Raw Normal View History

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