firmware/demo/makefile

92 lines
2.0 KiB
Makefile
Raw Normal View History

2018-03-12 07:01:29 +00:00
INCDIR= -I/usr/include -I$(HOME)/include -I./ -I./include -I../include
2018-06-04 12:54:00 +00:00
#LIBDIR= -L$(HOME)/lib -L../lib -lm -lc -ldl -lpthread -static -lstvm
2018-06-08 08:58:44 +00:00
LIBDIR= -L$(HOME)/lib -L../lib -lstvm -lm -lc -ldl -lrt -lpthread
2018-06-01 05:04:49 +00:00
CC=cc -fPIC -g
2018-05-31 10:28:53 +00:00
CO=-c -pg
2018-03-12 07:01:29 +00:00
OUTLIB=../lib
OUTBIN=../bin
OBJFILE=tree.o sem.o msg.o tcp.o str.o list.o conf.o
2018-06-07 07:20:53 +00:00
CREATE=create_table
QUEUE=create_queue
2018-06-04 12:54:00 +00:00
PUSH=push
POP=pop
2018-06-08 08:58:44 +00:00
TVMPOP=tvmpop
TVMREPLACE=tvmreplace
2018-03-12 07:01:29 +00:00
INSERT=insert
SELECT=select
QUERY=query
DELETE=delete
UPDATE=update
COUNT=count
GROUP=group
EXTREME=extreme
TRUNCATE=truncate
DROP=drop
2018-03-14 06:40:10 +00:00
CLICK=click
2018-05-31 10:28:53 +00:00
REPLACE=replace
2018-06-07 07:20:53 +00:00
POPUP=popup
2018-03-12 07:01:29 +00:00
PRESSURE=press_demo
2018-06-08 08:58:44 +00:00
TVMPUSH=tvmpush
ASYPUSH=asypush
2018-07-24 01:45:28 +00:00
THREAD=thread_demo
2018-03-12 07:01:29 +00:00
2018-07-24 01:45:28 +00:00
all: $(CREATE) $(INSERT) $(QUEUE) $(PUSH) $(POP) $(SELECT) $(QUERY) $(DELETE) $(UPDATE) $(COUNT) $(GROUP) $(EXTREME) $(TRUNCATE) $(DROP) $(PRESSURE) $(CLICK) $(POPUP) $(REPLACE) $(TVMPUSH) $(ASYPUSH) $(TVMPOP) $(TVMREPLACE) $(THREAD) clean
2018-06-07 07:20:53 +00:00
$(CREATE): create_table.o
2018-03-12 07:01:29 +00:00
$(CC) -o $@ $< $(LIBDIR)
2018-06-08 08:58:44 +00:00
$(TVMREPLACE): tvmreplace.o
$(CC) -o $@ $< $(LIBDIR)
$(TVMPOP): tvmpop.o
$(CC) -o $@ $< $(LIBDIR)
2018-06-04 12:54:00 +00:00
$(PUSH): push.o
$(CC) -o $@ $< $(LIBDIR)
2018-06-08 08:58:44 +00:00
$(TVMPUSH): tvmpush.o
$(CC) -o $@ $< $(LIBDIR)
$(ASYPUSH): asypush.o
$(CC) -o $@ $< $(LIBDIR)
2018-06-04 12:54:00 +00:00
$(POP): pop.o
$(CC) -o $@ $< $(LIBDIR)
2018-03-12 07:01:29 +00:00
$(INSERT): insert.o
$(CC) -o $@ $< $(LIBDIR)
$(SELECT): select.o
$(CC) -o $@ $< $(LIBDIR)
$(QUERY): query.o
$(CC) -o $@ $< $(LIBDIR)
$(DELETE): delete.o
$(CC) -o $@ $< $(LIBDIR)
$(UPDATE): update.o
$(CC) -o $@ $< $(LIBDIR)
$(COUNT): count.o
$(CC) -o $@ $< $(LIBDIR)
$(GROUP): group.o
$(CC) -o $@ $< $(LIBDIR)
$(EXTREME): extreme.o
$(CC) -o $@ $< $(LIBDIR)
$(TRUNCATE): truncate.o
$(CC) -o $@ $< $(LIBDIR)
$(DROP): drop.o
$(CC) -o $@ $< $(LIBDIR)
2018-03-14 06:40:10 +00:00
$(CLICK): click.o
$(CC) -o $@ $< $(LIBDIR)
2018-05-31 10:28:53 +00:00
$(REPLACE): replace.o
$(CC) -o $@ $< $(LIBDIR)
2018-06-07 07:20:53 +00:00
$(QUEUE): create_queue.o
$(CC) -o $@ $< $(LIBDIR)
$(POPUP): popup.o
2018-06-04 12:54:00 +00:00
$(CC) -o $@ $< $(LIBDIR)
2018-03-12 07:01:29 +00:00
$(PRESSURE): press_demo.o
$(CC) -o $@ $< $(LIBDIR)
2018-07-24 01:45:28 +00:00
$(THREAD): thread_demo.o
$(CC) -o $@ $< $(LIBDIR)
2018-03-12 07:01:29 +00:00
.SUFFIXES: .c .o
.c.o:
$(CC) $(CO) $*.c $(INCDIR) $(LIBDIR)
fall:
@touch *c
@make all
clean:
rm -f *.o