base
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
CC=gcc
|
||||
BINDIR=out
|
||||
|
||||
DEBUG_FLAGS=-Wall -Werror -ggdb
|
||||
|
||||
CFLAGS=$(DEBUG_FLAGS) $(shell pkg-config libxml-2.0 --cflags) -ansi -I ./headers
|
||||
LDFLAGS=$(shell pkg-config libxml-2.0 --libs)
|
||||
|
||||
BINARY=generarxml
|
||||
|
||||
OBJS = \
|
||||
main.o \
|
||||
readconfig.o
|
||||
|
||||
all: bin
|
||||
|
||||
bin: $(OBJS)
|
||||
$(CC) $(xml2-config --cflags --libs) $(CFLAGS) $(OBJS) $(LDFLAGS) \
|
||||
-o $(BINDIR)/$(BINARY)
|
||||
|
||||
clean:
|
||||
rm -fR $(BINDIR)/$(BINARY) *.o
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(xml2-config --cflags --libs) $(CFLAGS) -c $< -o $@ $(LDFLAGS)
|
Reference in New Issue
Block a user