root / logic / trunk / Makefile @ 45
History | View | Annotate | Download (959 Bytes)
1 | 7 | alexbesir | # |
---|---|---|---|
2 | 8 | alexbesir | # 2011, Aleksander Besir (alex.besir@gmail.com) |
3 | 7 | alexbesir | # |
4 | |||
5 | CC=gcc |
||
6 | 45 | Janez1 | CFLAGS=-Wall -I. -pthread -lmxml |
7 | 7 | alexbesir | BIN=bin |
8 | SRC=src |
||
9 | |||
10 | 45 | Janez1 | OBJ=$(SRC)/hci_comm/hci_comm_listener.o $(SRC)/startup/main.o $(SRC)/init/devicelist.o $(SRC)/init/scenariolist.o $(SRC)/logics/conditions.o $(SRC)/logics/device_threads.o $(SRC)/logics/operators.o $(SRC)/logics/scenario_threads.o |
11 | OBJC=$(SRC)/hci_comm/hci_comm_listener.h $(SRC)/hci_comm/hci_comm.h $(SRC)/init/devicelist.h $(SRC)/init/devicelist.c $(SRC)/init/scenariolist.c $(SRC)/init/scenariolist.h $(SRC)/logics/conditions.h $(SRC)/logics/conditions.c $(SRC)/logics/device_threads.h $(SRC)/logics/device_threads.c $(SRC)/logics/operators.h $(SRC)/logics/operators.c $(SRC)/logics/scenario_threads.h $(SRC)/logics/scenario_threads.c |
||
12 | 7 | alexbesir | OBJC=$(SRC)/buf.h $(SRC)/buf_nf.c $(SRC)/buf_sim.h $(SRC)/buf_sim.c |
13 | |||
14 | all: $(BIN)/startup |
||
15 | |||
16 | %.o: %.c |
||
17 | $(CC) -c -o $@ $< $(CFLAGS) |
||
18 | |||
19 | 8 | alexbesir | $(BIN)/startup: $(OBJ) |
20 | $(CC) -o $(BIN)/startup $^ $(CFLAGS) |