blob: a9f08af12519c4dadb689d9ed811e8ae7f3fcd0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#
#
# Makefile for serialsniff
#
# Author: IT2 Stuart Blake Tener, USNR (N3GWG)
#
# Version 1.00
#
# This makefile checks to see if we are running under the OS "Darwin"
# and passes the proper macro flag ("MACOS") if we are.
#
# Incidentally, it is noteworthy that MacOS (Darwin) is not the only
# operating system which is deficient some of the library routines
# MacOS is currently defficient. Thus, it is instructive that other
# operating systems names might need to be added for compilation to
# become occurring in their environments.
#
#
ifndef SYSNAME
SYSNAME := $(shell uname -s)
ifeq ($(SYSNAME),Darwin)
MYFLAGS := "-DMACOS"
REMOVE := srm -vrfz
else
REMOVE := rm -rf
endif
endif
serialsniff: serialsniff.c
$(CC) $? -o $@ $(LDFLAGS) $(CFLAGS) $(MYFLAGS)
clean:
$(REMOVE) serialsniff *~ *.o *.bak core tags shar a.out
|