2011-04-04 04:29:59 +03:00
|
|
|
#
|
|
|
|
# atrf-xtal/Makefile - Build the crystal diagnostic utility
|
|
|
|
#
|
|
|
|
# Written 2010, 2011 by Werner Almesberger
|
|
|
|
# Copyright 2010, 2011 Werner Almesberger
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(TARGET),)
|
|
|
|
TARGET = host
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET),host)
|
|
|
|
|
|
|
|
.PHONY: all install uninstall clean spotless
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
|
|
|
clean:
|
2011-04-20 07:02:43 +03:00
|
|
|
rm -f atben.o atrf-xtal.o
|
2011-04-04 04:29:59 +03:00
|
|
|
|
2011-04-20 07:02:43 +03:00
|
|
|
spotless: clean
|
|
|
|
rm -f atrf-xtal
|
2011-04-04 04:29:59 +03:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
MAIN = atrf-xtal
|
|
|
|
|
|
|
|
include ../Makefile.common
|
|
|
|
|
2011-05-18 23:32:15 +03:00
|
|
|
LDLIBS += -lm
|
2011-04-04 04:29:59 +03:00
|
|
|
CFLAGS += -O9
|
|
|
|
|
|
|
|
OBJS_$(TARGET) = atben.o
|
|
|
|
|
|
|
|
$(MAIN): $(OBJS_$(TARGET))
|
|
|
|
|
|
|
|
endif
|