Fix makefile
This commit is contained in:
parent
78f7064c98
commit
e13a311b97
8
Makefile
8
Makefile
@ -12,8 +12,8 @@ SRC = minrss.c util.c net.c handlers.c
|
|||||||
OBJ = $(SRC:.c=.o)
|
OBJ = $(SRC:.c=.o)
|
||||||
INCS = `$(PKG_CONFIG) --cflags libxml-2.0` `$(PKG_CONFIG) --cflags libcurl` $(JSONINC)
|
INCS = `$(PKG_CONFIG) --cflags libxml-2.0` `$(PKG_CONFIG) --cflags libcurl` $(JSONINC)
|
||||||
LIBS = `$(PKG_CONFIG) --libs libxml-2.0` `$(PKG_CONFIG) --libs libcurl` $(JSONLIBS)
|
LIBS = `$(PKG_CONFIG) --libs libxml-2.0` `$(PKG_CONFIG) --libs libcurl` $(JSONLIBS)
|
||||||
WARN = -Wall -Wpedantic -Wextra
|
WFLAGS = -Wall -Wpedantic -Wextra
|
||||||
CFLAGS = -std=c99 $(INCS) $(LIBS) $(WARN) -DVERSION=\"$(VERSION)\" $(JSONFLAG)
|
CFLAGS = -std=c99 $(INCS) $(WFLAGS) -DVERSION=\"$(VERSION)\" $(JSONFLAG)
|
||||||
|
|
||||||
all: config.h minrss
|
all: config.h minrss
|
||||||
|
|
||||||
@ -24,10 +24,10 @@ config.h:
|
|||||||
cp config.def.h config.h
|
cp config.def.h config.h
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $<
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
minrss: $(OBJ)
|
minrss: $(OBJ)
|
||||||
$(CC) $(CFLAGS) -o $@ $(OBJ)
|
$(CC) -o $@ $(OBJ) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f minrss $(OBJ)
|
rm -f minrss $(OBJ)
|
||||||
|
Loading…
Reference in New Issue
Block a user