Initial commit
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
Reference in New Issue
Block a user