Skip to content

Commit

Permalink
using a flags variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde committed Feb 16, 2014
1 parent aa64d64 commit 9e343bc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
CC=gcc
CFLAGS=
CXX=g++
CXXFLAGS=-std=c++11

all: main

main:
$(CC) -c tun_dev.c
$(CXX) -std=c++11 -c facebook.cpp
$(CXX) -std=c++11 -c tun.cpp base64encode.c
$(CXX) -std=c++11 -c client.cpp
$(CXX) -std=c++11 -c utils.cpp
$(CXX) -std=c++11 -o facebook-tunnel main.cpp base64encode.o tun_dev.o tun.o client.o facebook.o utils.o -lcurl -lgumbo -pthread
$(CC) $(CFLAGS) -c tun_dev.c
$(CXX) $(CXXFLAGS) -c facebook.cpp
$(CXX) $(CXXFLAGS) -c tun.cpp base64encode.c
$(CXX) $(CXXFLAGS) -c client.cpp
$(CXX) $(CXXFLAGS) -c utils.cpp
$(CXX) $(CXXFLAGS) -o facebook-tunnel main.cpp base64encode.o tun_dev.o tun.o client.o facebook.o utils.o -lcurl -lgumbo -pthread

clean:
rm facebook-tunnel
Expand Down

0 comments on commit 9e343bc

Please sign in to comment.