A LoRa packet forwarder running on the host of a LoRa Picocell Gateway that forwards RF packets receive by the concentrator to a server through a IP/UDP link, and emits RF packets that are sent by the server.
util_ack/Makefile@0:9002b89157da, 2018-04-11 (annotated)
- Committer:
- dgabino
- Date:
- Wed Apr 11 14:47:16 2018 +0000
- Revision:
- 0:9002b89157da
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dgabino | 0:9002b89157da | 1 | ### Application-specific constants |
dgabino | 0:9002b89157da | 2 | |
dgabino | 0:9002b89157da | 3 | APP_NAME := util_ack |
dgabino | 0:9002b89157da | 4 | |
dgabino | 0:9002b89157da | 5 | ### Constant symbols |
dgabino | 0:9002b89157da | 6 | |
dgabino | 0:9002b89157da | 7 | CC := $(CROSS_COMPILE)gcc |
dgabino | 0:9002b89157da | 8 | AR := $(CROSS_COMPILE)ar |
dgabino | 0:9002b89157da | 9 | |
dgabino | 0:9002b89157da | 10 | CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I. |
dgabino | 0:9002b89157da | 11 | |
dgabino | 0:9002b89157da | 12 | OBJDIR = obj |
dgabino | 0:9002b89157da | 13 | |
dgabino | 0:9002b89157da | 14 | ### General build targets |
dgabino | 0:9002b89157da | 15 | |
dgabino | 0:9002b89157da | 16 | all: $(APP_NAME) |
dgabino | 0:9002b89157da | 17 | |
dgabino | 0:9002b89157da | 18 | clean: |
dgabino | 0:9002b89157da | 19 | rm -f $(OBJDIR)/*.o |
dgabino | 0:9002b89157da | 20 | rm -f $(APP_NAME) |
dgabino | 0:9002b89157da | 21 | |
dgabino | 0:9002b89157da | 22 | ### Main program compilation and assembly |
dgabino | 0:9002b89157da | 23 | |
dgabino | 0:9002b89157da | 24 | $(OBJDIR): |
dgabino | 0:9002b89157da | 25 | mkdir -p $(OBJDIR) |
dgabino | 0:9002b89157da | 26 | |
dgabino | 0:9002b89157da | 27 | $(OBJDIR)/%.o: src/%.c | $(OBJDIR) |
dgabino | 0:9002b89157da | 28 | $(CC) -c $(CFLAGS) $< -o $@ |
dgabino | 0:9002b89157da | 29 | |
dgabino | 0:9002b89157da | 30 | $(APP_NAME): $(OBJDIR)/$(APP_NAME).o |
dgabino | 0:9002b89157da | 31 | $(CC) $< -o $@ |
dgabino | 0:9002b89157da | 32 | |
dgabino | 0:9002b89157da | 33 | ### EOF |