21 lines
453 B
Makefile
21 lines
453 B
Makefile
|
#makefile for serial project
|
||
|
#DE TTK - Villamosmérnök BSC - Baranyai Dávid
|
||
|
|
||
|
#Compiler:
|
||
|
CC = gcc
|
||
|
|
||
|
#Compiler flags:
|
||
|
CFLAGS = -lcurl
|
||
|
TARGET = serial_zigbee
|
||
|
SERIALHANDLER = serialhandler
|
||
|
|
||
|
all: $(TARGET) $(SERIALHANDLER)
|
||
|
|
||
|
$(SERIALHANDLER): $(SERIALHANDLER).c $(SERIALHANDLER).h
|
||
|
$(CC) -c $(SERIALHANDLER).c -o $(SERIALHANDLER).o
|
||
|
|
||
|
$(TARGET): $(TARGET).c $(SERIALHANDLER)
|
||
|
$(CC) -o $(TARGET) $(TARGET).c $(CFLAGS) $(SERIALHANDLER).o
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(TARGET)
|