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/>.
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user