gget/Makefile
2014-08-20 19:51:03 +02:00

22 lines
345 B
Makefile

CC=$(PREFIX)gcc
CFLAGS=-Wall
ifdef DEBUG
CFLAGS+=-ggdb
endif
ifdef WIN32
CURL_ROOT=curl-7.34.0-devel-mingw64/
CFLAGS+=-I$(CURL_ROOT)/include
LDFLAGS=$(CURL_ROOT)/lib64/libcurldll.a -lpthread
TARGET=gget.exe
else
LDFLAGS=-lcurl -lrt -lpthread
TARGET=gget
endif
$(TARGET): gget.c
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm -f *~ $(TARGET)