gget

gget Git Source Tree

Root/Makefile

1CC=$(PREFIX)gcc
2CFLAGS=-Wall
3ifdef DEBUG
4CFLAGS+=-ggdb
5endif
6
7ifdef WIN32
8CURL_ROOT=curl-7.34.0-devel-mingw64/
9CFLAGS+=-I$(CURL_ROOT)/include
10LDFLAGS=$(CURL_ROOT)/lib64/libcurldll.a -lpthread
11TARGET=gget.exe
12else
13LDFLAGS=-lcurl -lrt -lpthread
14TARGET=gget
15endif
16
17$(TARGET): gget.c
18$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
19
20clean:
21rm -f *~ $(TARGET)

Archive Download this file

Branches

Tags