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