You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
292 B
24 lines
292 B
7 years ago
|
SHELL := /bin/bash
|
||
|
|
||
|
|
||
|
# ============================================
|
||
|
# COMMANDS
|
||
|
|
||
|
CC = gcc
|
||
|
RM = rm -f
|
||
|
CFLAGS=-lm
|
||
|
|
||
|
# ==========================================
|
||
|
# TARGETS
|
||
|
|
||
|
|
||
|
EXECUTABLES = serial
|
||
|
|
||
|
all: $(EXECUTABLES)
|
||
|
|
||
|
serial: serial.c
|
||
|
$(CC) $< -o $@ $(CFLAGS)
|
||
|
|
||
|
clean:
|
||
|
$(RM) *.o *~ $(EXECUTABLES)
|