Functional Makefile.

This commit is contained in:
Nicolás Ortega Froysa 2017-11-05 17:08:23 +01:00
parent e72cb42199
commit 6a3bd9c290
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -15,15 +15,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CC=gcc
CFLAGS=-I../include/ -L../build/ -lneocomm
LD=ld
LDFLAGS=-lstdc++ -lopendht -lc -L../build/ -lneocomm
CFLAGS=-I../include/ -L../build/ -lneocomm -g -O0
LDFLAGS=-lc -lstdc++ -lopendht -lmsgpackc -L../build/ -lneocomm
BIN=bin/demo
demo:
mkdir -p bin/
$(CC) -c main.c $(CFLAGS)
$(LD) -o $(BIN) main.o $(LDFLAGS)
$(CC) -o $(BIN) main.c $(CFLAGS) $(LDFLAGS)
clean:
rm -f $(BIN) *.o