| 1 |
|
| 2 |
# Boilerplate Makefile for compiling standalone instrumement driver |
| 3 |
|
| 4 |
# Copyright 2000 - 2007 Graeme W. Gill |
| 5 |
# This material is licenced under the GNU GENERAL PUBLIC LICENSE Version 2 or later :- |
| 6 |
# see the License2.txt file for licencing details. |
| 7 |
|
| 8 |
# "include" the right environment for your system, |
| 9 |
# by uncommenting the appropriate line: |
| 10 |
|
| 11 |
# Microsoft VC++, WinNT setup |
| 12 |
include Makefile.WNT |
| 13 |
|
| 14 |
# Generic UNIX setup |
| 15 |
#include Makefile.UNIX |
| 16 |
|
| 17 |
# Apple OS X |
| 18 |
#include Makefile.OSX |
| 19 |
|
| 20 |
############################### |
| 21 |
|
| 22 |
|
| 23 |
CCDEFINES = $(DEFFLAG)SALONEINSTLIB $(DEFFLAG)ALLINSTS $(DEFFLAG)ENABLE_SERIAL $(DEFFLAG)ENABLE_FAST_SERIAL $(DEFFLAG)ENABLE_USB |
| 24 |
|
| 25 |
#Set optimisation on |
| 26 |
CCFLAGS = $(CCFLAGSDEF) $(CCOPTFLAG) $(CCDEFINES) $(BCONFIG) |
| 27 |
|
| 28 |
# Set debugging on |
| 29 |
#CCFLAGS = $(CCFLAGSDEF) $(CCDEBUGFLAG) $(CCDEFINES) $(BCONFIG) |
| 30 |
# Debugging and debugging #define |
| 31 |
#CCFLAGS = $(CCFLAGSDEF) $(CCDEBUGFLAG) $(CCDEFINES) $(DEFFLAG)DEBUG |
| 32 |
|
| 33 |
LINKFLAGS = $(LINKFLAGSDEF) $(LINKDEBUGFLAG) |
| 34 |
|
| 35 |
# Where headers come from |
| 36 |
STDHDRS = $(INCFLAG)$(STDHDRSDEF) |
| 37 |
WIN_STDHDRS = $(INCFLAG)usb$(SLASH)driver |
| 38 |
|
| 39 |
all:: libinst$(SUFLIB) libinstappsup$(SUFLIB) spotread$(SUFEXE) oeminst$(SUFEXE) |
| 40 |
|
| 41 |
INSTHEADERS = dtp20.h dtp22.h dtp41.h dtp51.h dtp92.h ss.h ss_imp.h i1disp.h i1d3.h i1pro.h i1pro_imp.h munki.h munki_imp.h hcfr.h huey.h colorhug.h spyd2.h spydX.h specbos.h kleink10.h |
| 42 |
|
| 43 |
INSOBJS = dtp20$(SUFOBJ) dtp22$(SUFOBJ) dtp41$(SUFOBJ) dtp51$(SUFOBJ) dtp92$(SUFOBJ) ss$(SUFOBJ) ss_imp$(SUFOBJ) i1disp$(SUFOBJ) i1d3$(SUFOBJ) i1pro$(SUFOBJ) i1pro_imp$(SUFOBJ) i1pro3$(SUFOBJ) i1pro3_imp$(SUFOBJ) munki$(SUFOBJ) munki_imp$(SUFOBJ) hcfr$(SUFOBJ) huey$(SUFOBJ) colorhug$(SUFOBJ) spyd2$(SUFOBJ) spydX$(SUFOBJ) specbos$(SUFOBJ) kleink10$(SUFOBJ) ex1$(SUFOBJ) smcube$(SUFOBJ) |
| 44 |
|
| 45 |
HEADERS = pollem.h conv.h sa_conv.h aglob.h hidio.h icoms.h inst.c inst.h insttypeinst.h insttypes.h disptechs.h rspec.h xrga.h $(INSTHEADERS) usbio.h xspect.h rspl1.h sort.h xdg_bds.h ccss.h ccmx.h pars.h cgats.h instappsup.h usb$(SLASH)driver$(SLASH)driver_api.h |
| 46 |
|
| 47 |
# libinst objects |
| 48 |
OBJS = conv$(SUFOBJ) sa_conv$(SUFOBJ) aglob$(SUFOBJ) inst$(SUFOBJ) numsup$(SUFOBJ) rspl1$(SUFOBJ) icoms$(SUFOBJ) usbio$(SUFOBJ) hidio$(SUFOBJ) insttypes$(SUFOBJ) disptechs$(SUFOBJ) rspec$(SUFOBJ) xrga$(SUFOBJ) pollem$(SUFOBJ) xspect$(SUFOBJ) xdg_bds$(SUFOBJ) ccss$(SUFOBJ) ccmx$(SUFOBJ) pars$(SUFOBJ) cgats$(SUFOBJ) $(INSOBJS) |
| 49 |
|
| 50 |
|
| 51 |
# instrument library |
| 52 |
|
| 53 |
conv$(SUFOBJ): conv.c $(HEADERS) |
| 54 |
$(CC) conv.c |
| 55 |
|
| 56 |
sa_conv$(SUFOBJ): sa_conv.c $(HEADERS) |
| 57 |
$(CC) sa_conv.c |
| 58 |
|
| 59 |
aglob$(SUFOBJ): aglob.c $(HEADERS) |
| 60 |
$(CC) aglob.c |
| 61 |
|
| 62 |
inst$(SUFOBJ): inst.c $(HEADERS) |
| 63 |
$(CC) inst.c |
| 64 |
|
| 65 |
numsup$(SUFOBJ): numsup.c $(HEADERS) |
| 66 |
$(CC) numsup.c |
| 67 |
|
| 68 |
rspl1$(SUFOBJ): rspl1.c $(HEADERS) |
| 69 |
$(CC) rspl1.c |
| 70 |
|
| 71 |
icoms$(SUFOBJ): icoms.c $(HEADERS) |
| 72 |
$(CC) icoms.c |
| 73 |
|
| 74 |
usbio$(SUFOBJ): usbio.c $(HEADERS) |
| 75 |
$(CC) usbio.c |
| 76 |
|
| 77 |
hidio$(SUFOBJ): hidio.c $(HEADERS) |
| 78 |
$(CC) hidio.c |
| 79 |
|
| 80 |
insttypes$(SUFOBJ): insttypes.c $(HEADERS) |
| 81 |
$(CC) insttypes.c |
| 82 |
|
| 83 |
rspec$(SUFOBJ): rspec.c $(HEADERS) |
| 84 |
$(CC) rspec.c |
| 85 |
|
| 86 |
xrga$(SUFOBJ): xrga.c $(HEADERS) |
| 87 |
$(CC) xrga.c |
| 88 |
|
| 89 |
disptechs$(SUFOBJ): disptechs.c $(HEADERS) |
| 90 |
$(CC) disptechs.c |
| 91 |
|
| 92 |
pollem$(SUFOBJ): pollem.c $(HEADERS) |
| 93 |
$(CC) pollem.c |
| 94 |
|
| 95 |
xspect$(SUFOBJ): xspect.c $(HEADERS) |
| 96 |
$(CC) xspect.c |
| 97 |
|
| 98 |
pars$(SUFOBJ): pars.c parsstd.c $(HEADERS) |
| 99 |
$(CC) pars.c |
| 100 |
|
| 101 |
cgats$(SUFOBJ): cgats.c cgatsstd.c $(HEADERS) |
| 102 |
$(CC) cgats.c |
| 103 |
|
| 104 |
dtp20$(SUFOBJ): dtp20.c $(HEADERS) |
| 105 |
$(CC) dtp20.c |
| 106 |
|
| 107 |
dtp22$(SUFOBJ): dtp22.c $(HEADERS) |
| 108 |
$(CC) dtp22.c |
| 109 |
|
| 110 |
dtp41$(SUFOBJ): dtp41.c $(HEADERS) |
| 111 |
$(CC) dtp41.c |
| 112 |
|
| 113 |
dtp51$(SUFOBJ): dtp51.c $(HEADERS) |
| 114 |
$(CC) dtp51.c |
| 115 |
|
| 116 |
dtp92$(SUFOBJ): dtp92.c $(HEADERS) |
| 117 |
$(CC) dtp92.c |
| 118 |
|
| 119 |
ss$(SUFOBJ): ss.c $(HEADERS) |
| 120 |
$(CC) ss.c |
| 121 |
|
| 122 |
ss_imp$(SUFOBJ): ss_imp.c $(HEADERS) |
| 123 |
$(CC) ss_imp.c |
| 124 |
|
| 125 |
i1disp$(SUFOBJ): i1disp.c $(HEADERS) |
| 126 |
$(CC) i1disp.c |
| 127 |
|
| 128 |
i1d3$(SUFOBJ): i1d3.c $(HEADERS) |
| 129 |
$(CC) i1d3.c |
| 130 |
|
| 131 |
i1pro$(SUFOBJ): i1pro.c $(HEADERS) |
| 132 |
$(CC) i1pro.c |
| 133 |
|
| 134 |
i1pro_imp$(SUFOBJ): i1pro_imp.c $(HEADERS) |
| 135 |
$(CC) i1pro_imp.c |
| 136 |
|
| 137 |
munki$(SUFOBJ): munki.c $(HEADERS) |
| 138 |
$(CC) munki.c |
| 139 |
|
| 140 |
munki_imp$(SUFOBJ): munki_imp.c $(HEADERS) |
| 141 |
$(CC) munki_imp.c |
| 142 |
|
| 143 |
hcfr$(SUFOBJ): hcfr.c $(HEADERS) |
| 144 |
$(CC) hcfr.c |
| 145 |
|
| 146 |
huey$(SUFOBJ): huey.c $(HEADERS) |
| 147 |
$(CC) huey.c |
| 148 |
|
| 149 |
colorhug$(SUFOBJ): colorhug.c $(HEADERS) |
| 150 |
$(CC) colorhug.c |
| 151 |
|
| 152 |
spyd2$(SUFOBJ): spyd2.c $(HEADERS) |
| 153 |
$(CC) spyd2.c |
| 154 |
|
| 155 |
spydX$(SUFOBJ): spydX.c $(HEADERS) |
| 156 |
$(CC) spydX.c |
| 157 |
|
| 158 |
specbos$(SUFOBJ): specbos.c $(HEADERS) |
| 159 |
$(CC) specbos.c |
| 160 |
|
| 161 |
kleink10$(SUFOBJ): kleink10.c $(HEADERS) |
| 162 |
$(CC) kleink10.c |
| 163 |
|
| 164 |
ex1$(SUFOBJ): ex1.c $(HEADERS) |
| 165 |
$(CC) ex1.c |
| 166 |
|
| 167 |
smcube$(SUFOBJ): smcube.c $(HEADERS) |
| 168 |
$(CC) smcube.c |
| 169 |
|
| 170 |
oemarch$(SUFOBJ): oemarch.c $(HEADERS) |
| 171 |
$(CC) oemarch.c |
| 172 |
|
| 173 |
oeminst$(SUFOBJ): oeminst.c $(HEADERS) |
| 174 |
$(CC) oeminst.c |
| 175 |
|
| 176 |
vinflate$(SUFOBJ): vinflate.c $(HEADERS) |
| 177 |
$(CC) vinflate.c |
| 178 |
|
| 179 |
inflate$(SUFOBJ): inflate.c $(HEADERS) |
| 180 |
$(CC) inflate.c |
| 181 |
|
| 182 |
LzmaDec$(SUFOBJ): LzmaDec.c LzmaDec.h LzmaTypes.h $(HEADERS) |
| 183 |
$(CC) LzmaDec.c |
| 184 |
|
| 185 |
libinst$(SUFLIB): $(OBJS) |
| 186 |
$(LIBU) $(LIBOF)$@ $(OBJS) |
| 187 |
$(RANLIB) libinst$(SUFLIB) |
| 188 |
|
| 189 |
# instappsup objects |
| 190 |
SUPOBJS = instappsup$(SUFOBJ) |
| 191 |
|
| 192 |
# instappsup library |
| 193 |
|
| 194 |
instappsup$(SUFOBJ): instappsup.c $(HEADERS) |
| 195 |
$(CC) instappsup.c |
| 196 |
|
| 197 |
libinstappsup$(SUFLIB): $(SUPOBJS) |
| 198 |
$(LIBU) $(LIBOF)$@ $(SUPOBJS) |
| 199 |
$(RANLIB) libinstappsup$(SUFLIB) |
| 200 |
|
| 201 |
# test/example code |
| 202 |
|
| 203 |
spotread$(SUFEXE): spotread$(SUFOBJ) libinst$(SUFLIB) inst.h |
| 204 |
$(LINK) $(LINKOF)spotread$(SUFEXE) spotread$(SUFOBJ) libinst$(SUFLIB) libinstappsup$(SUFLIB) $(LINKLIBS) |
| 205 |
|
| 206 |
oeminst$(SUFEXE): oeminst$(SUFOBJ) oemarch$(SUFOBJ) inflate$(SUFOBJ) vinflate$(SUFOBJ) LzmaDec$(SUFOBJ) libinst$(SUFLIB) libinstappsup$(SUFLIB) |
| 207 |
$(LINK) $(LINKOF)oeminst$(SUFEXE) oeminst$(SUFOBJ) oemarch$(SUFOBJ) inflate$(SUFOBJ) vinflate$(SUFOBJ) LzmaDec$(SUFOBJ) libinst$(SUFLIB) libinstappsup$(SUFLIB) $(LINKLIBS) |
| 208 |
|
| 209 |
clean: |
| 210 |
$(RM) *$(SUFOBJ) *$(SUFLIB) spotread$(SUFEXE) i1d3css$(SUFEXE) |
| 211 |
|