Functional Makefile.
This commit is contained in:
parent
e72cb42199
commit
6a3bd9c290
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user