Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created January 12, 2014 17:34
Show Gist options
  • Select an option

  • Save zedtux/8387822 to your computer and use it in GitHub Desktop.

Select an option

Save zedtux/8387822 to your computer and use it in GitHub Desktop.
C++: pkg-config pour vos bibliothèques ! - Makefile
CC=g++
PKGCONFIG=`pkg-config --cflags --libs libhelloworld`
CFLAGS=-pedantic -Wall -W $(PKGCONFIG)
LDFLAGS=$(PKGCONFIG)
OBJ=main.o
EXEC=testHelloWorld
all: $(EXEC)
$(EXEC): $(OBJ)
$(CC) -o $(EXEC) $(LDFLAGS) $(OBJ)
%.o: %.cpp
$(CC) $(CFLAGS) -c $<
@zedtux

zedtux commented Jan 12, 2014

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment