-
Notifications
You must be signed in to change notification settings - Fork 5
/
GNUmakefile
40 lines (31 loc) · 942 Bytes
/
GNUmakefile
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
36
37
38
39
# GNUmakefile - The makefile for the ibisami library.
#
# Original author: David Banas
# Original date: May 2, 2015
#
# Copyright (c) 2015 David Banas; all rights reserved World wide.
SRCDIR := src
INCDIR := include
INCS := ami_tx.h ami_rx.h amimodel.h digital_filter.h dfe.h fir_filter.h util.h
MODS := ibisami_api amimodel ami_tx ami_rx digital_filter dfe fir_filter util
# Check for proper IBISAMI_ROOT definition.
IBISAMI_ROOT ?= ""
ifeq ($(IBISAMI_ROOT), "")
$(error You must define environment variable IBISAMI_ROOT.)
endif
# Bring in common definitions.
include $(IBISAMI_ROOT)/defs.mak
# Targets
.PHONY: all x32 x64 targs
all: x32 x64
x32:
@echo "Building 32-bit ibisami library..."
MACHINE=X86 $(MAKE) targs
x64:
@echo "Building 64-bit ibisami library..."
MACHINE=AMD64 $(MAKE) targs
targs: $(IBISAMI_LIB)
$(IBISAMI_LIB): $(OBJS)
@echo "Built $(OBJS)."
# @echo "Building $@..."
# $(RUN_CMD) $(LIB) $(LIBFLAGS) $^