/gretl-1.9.9/win32/Makefile

# · Makefile · 565 lines · 461 code · 91 blank · 13 comment · 2 complexity · 4bddf643283f0c25793bb4792fe9a7e4 MD5 · raw file

  1. # This makefile can be used for cross-compiling gretl for win32
  2. # on Linux, or for a native build on MS Windows. In both cases we
  3. # assume that the mingw compiler is used. The build type is
  4. # controlled by the BUILDTYPE variable in config.mk, included
  5. # below.
  6. include config.mk
  7. # directories
  8. topsrc = ..
  9. libsrcdir = $(topsrc)/lib/src
  10. plugindir = $(topsrc)/plugin
  11. zipdir = $(topsrc)/plugin/zipunzip
  12. guidir = $(topsrc)/gui2
  13. imports = ./import-libs
  14. host_builddir = $(topsrc)/build
  15. # tools (can add -fopenmp to CC if wanted)
  16. CC = $(MGW_PREFIX)gcc -msse2 -Wall -O2 -mms-bitfields -DWIN32
  17. AS = $(MGW_PREFIX)as
  18. DLLWRAP = $(MGW_PREFIX)dllwrap
  19. DLLWRAP_FLAGS = --as=$(AS) --export-all --driver-name $(CC) -s
  20. RC = $(MGW_PREFIX)windres
  21. RCFLAGS = --define __WIN32__ --define __WIN95__ --define MSRC \
  22. --define __GNUWIN32__
  23. # libraries
  24. GTKLIBS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs gtk+-win32-2.0)
  25. GLIBLIB := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs glib-2.0)
  26. CLI_LIBS = -lreadline -lhistory
  27. GUI_LIBS = -lwsock32 -lole32 $(GTKLIBS) -lgtksourceview-2.0 -lxml2 -L$(imports)
  28. GRETLLIB = -L$(imports) -lgretl -lintl
  29. LIBS = -lm $(GRETLLIB) -ladvapi32
  30. LAPACK_LIBS = -llapack.dll -lblas.dll
  31. FFTW_LIBS = -lfftw3
  32. # flags/defines
  33. CFLAGS = -I. -I$(libsrcdir) -I$(plugindir) -I$(guidir) -I$(zipdir) \
  34. -I$(XML2_INC) $(RLIB_CFLAGS)
  35. GTK_CFLAGS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags gtk+-win32-2.0 gtksourceview-2.0)
  36. ifeq ($(BUILDTYPE),cross)
  37. GRETL_LANG = cross_lang
  38. BUILDDATE = cross_builddate
  39. else
  40. GRETL_LANG = native_lang
  41. BUILDDATE = native_builddate
  42. endif
  43. # source paths
  44. vpath %.c $(libsrcdir)
  45. vpath %.c $(topsrc)/cephes
  46. vpath %.c $(topsrc)/minpack
  47. vpath %.c $(topsrc)/cli
  48. vpath %.c $(guidir)
  49. vpath %.c $(plugindir)
  50. vpath %.c $(plugindir)/libole2
  51. vpath %.c $(plugindir)/zipunzip
  52. vpath %.c $(plugindir)/rq
  53. vpath %.c $(topsrc)/tests
  54. vpath %.h $(libsrcdir):$(topsrc)/cli:$(guidir):$(plugindir):.
  55. vpath %.h $(topsrc)/cephes:..
  56. vpath %.rc $(topsrc)/win32
  57. #### End of system configuration section. ####
  58. PLUGINSRC = \
  59. arbond.c \
  60. excel_import.c \
  61. xlsx_import.c \
  62. gnumeric_import.c \
  63. eviews_import.c \
  64. stata_import.c \
  65. spss_import.c \
  66. sas_import.c \
  67. jmulti_import.c \
  68. ods_import.c \
  69. johansen.c \
  70. jrestrict.c \
  71. jalpha.c \
  72. kernel.c \
  73. vif.c \
  74. leverage.c \
  75. mp_ols.c \
  76. pca.c \
  77. progress_bar.c \
  78. range-mean.c \
  79. fractals.c \
  80. poisson.c \
  81. duration.c \
  82. stats_tables.c \
  83. sysest.c \
  84. fiml.c \
  85. liml.c \
  86. tramo_options.c \
  87. tramo-x12a.c \
  88. nistcheck.c \
  89. arma_cml.c \
  90. arma_init.c \
  91. arma.c \
  92. arma_x12.c \
  93. workbook.c \
  94. mod_garch.c \
  95. fcp.c \
  96. garch.c \
  97. audio.c \
  98. urcdist.c \
  99. gretlzip.c \
  100. heckit.c \
  101. odbc_import.c \
  102. quantreg.c \
  103. interval.c \
  104. anova.c \
  105. biprobit.c
  106. PLUGINOBJ = $(PLUGINSRC:.c=.o)
  107. PLUGINS = plugins/stats_tables.dll \
  108. plugins/progress_bar.dll \
  109. plugins/gnumeric_import.dll \
  110. plugins/eviews_import.dll \
  111. plugins/excel_import.dll \
  112. plugins/xlsx_import.dll \
  113. plugins/stata_import.dll \
  114. plugins/spss_import.dll \
  115. plugins/sas_import.dll \
  116. plugins/jmulti_import.dll \
  117. plugins/ods_import.dll \
  118. plugins/mp_ols.dll \
  119. plugins/sysest.dll \
  120. plugins/johansen.dll \
  121. plugins/kernel.dll \
  122. plugins/arbond.dll \
  123. plugins/arma.dll \
  124. plugins/arma_x12.dll \
  125. plugins/range-mean.dll \
  126. plugins/fractals.dll \
  127. plugins/poisson.dll \
  128. plugins/duration.dll \
  129. plugins/tramo-x12a.dll \
  130. plugins/leverage.dll \
  131. plugins/pca.dll \
  132. plugins/nistcheck.dll \
  133. plugins/garch.dll \
  134. plugins/audio.dll \
  135. plugins/vif.dll \
  136. plugins/urcdist.dll \
  137. plugins/gretlzip.dll \
  138. plugins/heckit.dll \
  139. plugins/odbc_import.dll \
  140. plugins/quantreg.dll \
  141. plugins/interval.dll \
  142. plugins/anova.dll \
  143. plugins/interpolate.dll \
  144. plugins/biprobit.dll \
  145. plugins/panurc.dll
  146. LIBSRC = adf_kpss.c \
  147. bhhh_max.c \
  148. bootstrap.c \
  149. boxplots.c \
  150. calendar.c \
  151. compare.c \
  152. compat.c \
  153. csvdata.c \
  154. dataio.c \
  155. dataset.c \
  156. dbread.c \
  157. dbwrite.c \
  158. describe.c \
  159. discrete.c \
  160. estimate.c \
  161. flow_control.c \
  162. forecast.c \
  163. geneval.c \
  164. genfuncs.c \
  165. genlex.c \
  166. genmain.c \
  167. gensyntax.c \
  168. gmm.c \
  169. graphing.c \
  170. gretl_bfgs.c \
  171. gretl_bundle.c \
  172. gretl_commands.c \
  173. gretl_data_io.c \
  174. gretl_errors.c \
  175. gretl_fft.c \
  176. gretl_foreign.c \
  177. gretl_func.c \
  178. gretl_intl.c \
  179. gretl_list.c \
  180. gretl_matrix.c \
  181. gretl_model.c \
  182. gretl_panel.c \
  183. gretl_paths.c \
  184. gretl_prn.c \
  185. gretl_restrict.c \
  186. gretl_scalar.c \
  187. gretl_string_table.c \
  188. gretl_untar.c \
  189. gretl_utils.c \
  190. gretl_win32.c \
  191. gretl_www.c \
  192. gretl_xml.c \
  193. interact.c \
  194. kalman.c \
  195. libglue.c \
  196. libset.c \
  197. matrix_extra.c \
  198. missing.c \
  199. modelprint.c \
  200. monte_carlo.c \
  201. nls.c \
  202. nonparam.c \
  203. objstack.c \
  204. options.c \
  205. plotspec.c \
  206. plugins.c \
  207. printout.c \
  208. printscan.c \
  209. pvalues.c \
  210. qr_estimate.c \
  211. random.c \
  212. strutils.c \
  213. subsample.c \
  214. system.c \
  215. texprint.c \
  216. transforms.c \
  217. tsls.c \
  218. usermat.c \
  219. var.c \
  220. varprint.c \
  221. vartest.c \
  222. irfboot.c
  223. LIBOBJ = $(LIBSRC:.c=.o)
  224. CLISRC = gretlcli.c complete.c
  225. CLIOBJ = $(CLISRC:.c=.o)
  226. GUISRC = about.c \
  227. calculator.c \
  228. callbacks.c \
  229. cmdstack.c \
  230. console.c \
  231. database.c \
  232. datafiles.c \
  233. datawiz.c \
  234. dialogs.c \
  235. dlgutils.c \
  236. filelists.c \
  237. fileselect.c \
  238. filters.c \
  239. fncall.c \
  240. fnsave.c \
  241. gpt_control.c \
  242. gpt_dialog.c \
  243. graphics.c \
  244. graph_page.c \
  245. gretl.c \
  246. gretlwin32.c \
  247. guiprint.c \
  248. gui_recode.c \
  249. gui_utils.c \
  250. helpfiles.c \
  251. lagpref.c \
  252. library.c \
  253. menustate.c \
  254. model_table.c \
  255. objectsave.c \
  256. obsbutton.c \
  257. selector.c \
  258. series_view.c \
  259. session.c \
  260. settings.c \
  261. ssheet.c \
  262. tabwin.c \
  263. textbuf.c \
  264. textutil.c \
  265. toolbar.c \
  266. treeutils.c \
  267. update.c \
  268. varinfo.c \
  269. winstack.c
  270. ifeq ($(HAVE_GTK_SPINNER),no)
  271. GUISRC += spinner.c
  272. endif
  273. GUIOBJ = $(GUISRC:.c=.o)
  274. PROBSRC = airy.c const.c hyp2f1.c igami.c j1.c kn.c pdtr.c struve.c \
  275. bdtr.c expx2.c hyperg.c incbet.c jn.c mtherr.c polevl.c unity.c \
  276. btdtr.c fdtr.c i0.c incbi.c jv.c nbdtr.c polrt.c yn.c \
  277. chbevl.c gamma.c i1.c iv.c k0.c kv.c ndtr.c psi.c \
  278. chdtr.c gdtr.c igam.c j0.c k1.c ndtri.c stdtr.c
  279. PROBOBJ = $(PROBSRC:.c=.o)
  280. MINSRC = chkder.c enorm.c fdjac2.c lmder1.c lmder.c lmdif.c lmpar.c \
  281. qrfac.c qrsolv.c lbfgsb.c
  282. MINOBJ = $(MINSRC:.c=.o)
  283. OBJS = $(LIBOBJ) $(CLIOBJ) $(GUIOBJ) $(PLUGINOBJ)
  284. MOFILES = mo/de.po mo/el.mo mo/es.mo mo/eu.mo mo/fr.mo mo/it.mo mo/pl.mo \
  285. mo/pt.mo mo/ru.mo mo/rw.mo mo/tr.mo mo/cs.mo mo/sq.mo
  286. %.o: %.c
  287. $(CC) -c $(GTK_CFLAGS) $(CFLAGS) $<
  288. $(CC) -MM $(GTK_CFLAGS) $(CFLAGS) $< > $*.d
  289. # targets begin
  290. all: buildstamp dirs dlls/libprob.dll dlls/libgretl.dll \
  291. $(PLUGINS) gretlcli.exe gretlw32.exe $(MOFILES) $(GRETL_LANG) gretl_updater.exe
  292. gretlcli.exe: $(CLIOBJ)
  293. $(CC) -o $@ $^ $(LIBS) $(CLI_LIBS) -lz -lmingwex -s
  294. gretlw32.exe: $(GUIOBJ) gretlres.o
  295. $(CC) -mwindows -o $@ $^ $(LIBS) $(GUI_LIBS) -lz -lmingwex -s
  296. gretlres.o: gretlw32.rc
  297. $(RC) $(RCFLAGS) $< $@
  298. cross_lang: $(libsrcdir)/options.c $(libsrcdir)/genlex.c $(libsrcdir)/gretl_commands.c
  299. HERE=$$PWD ; cd $(host_builddir)/gui2 && make mklang && ./mklang > $$HERE/gretl.lang ; cd $$HERE
  300. mklang.o: mklang.c $(libsrcdir)/options.c $(libsrcdir)/genlex.c $(libsrcdir)/gretl_commands.c
  301. $(CC) -c -I. -I$(libsrcdir) -I$(XML2_INC) $<
  302. mklang.exe: mklang.o
  303. $(CC) -o $@ $< $(GRETLLIB) $(XML_LIBS)
  304. native_lang: mklang.exe
  305. PATH=/bin:./dlls:/mingw/winbuild/misc-dll ./mklang.exe > gretl.lang
  306. gretl_updater.exe:
  307. make -C updater
  308. $(MOFILES):
  309. make -C mo
  310. dlls/libgretl.dll: $(LIBOBJ) $(MINOBJ) dllinit.o
  311. $(DLLWRAP) $(DLLWRAP_FLAGS) \
  312. --output-def libgretl.def --implib $(imports)/libgretl.a \
  313. -o $@ $^ -lm -L$(imports) -lxml2 -lz -lintl -lprob -lgmp.dll \
  314. -lmingwex -lwsock32 $(GLIBLIB) $(LAPACK_LIBS) $(FFTW_LIBS)
  315. dlls/libprob.dll: $(PROBOBJ) dllinit.o
  316. $(DLLWRAP) $(DLLWRAP_FLAGS) \
  317. --output-def libprob.def --implib $(imports)/libprob.a \
  318. -o $@ $^
  319. plugins/stats_tables.dll: stats_tables.o dllinit.o
  320. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  321. --implib plugins/$(<:.o=.a) $^ -lz $(GRETLLIB)
  322. plugins/range-mean.dll: range-mean.o dllinit.o
  323. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  324. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  325. plugins/fractals.dll: fractals.o dllinit.o
  326. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  327. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  328. plugins/poisson.dll: poisson.o dllinit.o
  329. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  330. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) -lprob
  331. plugins/duration.dll: duration.o dllinit.o
  332. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  333. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  334. plugins/kernel.dll: kernel.o dllinit.o
  335. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  336. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  337. plugins/vif.dll: vif.o dllinit.o
  338. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  339. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  340. plugins/urcdist.dll: urcdist.o dllinit.o
  341. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  342. --implib plugins/$(<:.o=.a) $^ -lz -lm -lintl $(GRETLLIB)
  343. plugins/tramo-x12a.dll: tramo-x12a.o tramo_options.o dllinit.o
  344. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  345. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS)
  346. plugins/progress_bar.dll: progress_bar.o dllinit.o
  347. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  348. --implib plugins/$(<:.o=.a) $^ $(GTKLIBS) -L$(imports) -lintl
  349. plugins/gnumeric_import.dll: gnumeric_import.o dllinit.o
  350. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  351. --implib plugins/$(<:.o=.a) $^ -L$(imports) -lxml2 \
  352. $(GRETLLIB) $(GTKLIBS)
  353. plugins/ods_import.dll: ods_import.o dllinit.o
  354. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  355. --implib plugins/$(<:.o=.a) $^ -L$(imports) -lxml2 \
  356. $(GRETLLIB) $(GTKLIBS)
  357. plugins/xlsx_import.dll: xlsx_import.o dllinit.o
  358. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  359. --implib plugins/$(<:.o=.a) $^ -L$(imports) -lxml2 \
  360. $(GRETLLIB) $(GTKLIBS)
  361. plugins/excel_import.dll: excel_import.o workbook.o ms-ole.o dllinit.o
  362. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  363. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS) -lmoldname
  364. plugins/eviews_import.dll: eviews_import.o dllinit.o
  365. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  366. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  367. plugins/stata_import.dll: stata_import.o dllinit.o
  368. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  369. --implib plugins/$(<:.o=.a) $^ $(GLIBLIB) $(GRETLLIB)
  370. plugins/spss_import.dll: spss_import.o dllinit.o
  371. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  372. --implib plugins/$(<:.o=.a) $^ $(GLIBLIB) $(GRETLLIB)
  373. plugins/sas_import.dll: sas_import.o dllinit.o
  374. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  375. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  376. plugins/jmulti_import.dll: jmulti_import.o dllinit.o
  377. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  378. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  379. plugins/mp_ols.dll: mp_ols.o dllinit.o
  380. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  381. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) -lmpfr.dll -lgmp.dll
  382. plugins/sysest.dll: sysest.o fiml.o liml.o dllinit.o
  383. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  384. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  385. plugins/johansen.dll: johansen.o jrestrict.o jalpha.o dllinit.o
  386. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  387. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  388. plugins/leverage.dll: leverage.o dllinit.o
  389. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  390. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS) $(LAPACK_LIBS)
  391. plugins/pca.dll: pca.o dllinit.o
  392. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  393. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS) $(LAPACK_LIBS)
  394. plugins/nistcheck.dll: nistcheck.o dllinit.o
  395. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  396. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  397. plugins/arbond.dll: arbond.o dllinit.o
  398. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  399. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  400. plugins/arma.dll: arma.o arma_cml.o arma_init.o dllinit.o
  401. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  402. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS) -lprob
  403. plugins/arma_x12.dll: arma_x12.o dllinit.o
  404. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  405. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS) $(LAPACK_LIBS)
  406. plugins/garch.dll: garch.o fcp.o mod_garch.o dllinit.o
  407. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  408. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  409. plugins/audio.dll: audio.o midi_utils.o dllinit.o
  410. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  411. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GTKLIBS) -lole32 -lsapi
  412. plugins/gretlzip.dll: gretlzip.o zfileio.o zipfile.o zipmain.o zipwork.o \
  413. zsystem.o dllinit.o
  414. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  415. --implib plugins/$(<:.o=.a) $^ $(GLIBLIB) -lz $(GRETLLIB)
  416. plugins/heckit.dll: heckit.o dllinit.o
  417. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  418. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  419. plugins/odbc_import.dll: odbc_import.o dllinit.o
  420. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  421. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) -lodbc32
  422. plugins/quantreg.dll: quantreg.o rqfnb.o rqbr.o dllinit.o
  423. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  424. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(LAPACK_LIBS)
  425. plugins/interval.dll: interval.o dllinit.o
  426. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  427. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  428. plugins/anova.dll: anova.o dllinit.o
  429. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  430. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GLIBLIB)
  431. plugins/interpolate.dll: interpolate.o dllinit.o
  432. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  433. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  434. plugins/biprobit.dll: biprobit.o dllinit.o
  435. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  436. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB)
  437. plugins/panurc.dll: panurc.o dllinit.o
  438. $(DLLWRAP) $(DLLWRAP_FLAGS) --output-def $(<:.o=.def) -o $@ \
  439. --implib plugins/$(<:.o=.a) $^ $(GRETLLIB) $(GLIBLIB)
  440. ms-ole.o: ms-ole.c $(topsrc)/plugin/libole2/ms-ole.h
  441. $(CC) -c $(CFLAGS) $(GTK_CFLAGS) $<
  442. workbook.o: workbook.c $(topsrc)/plugin/libole2/ms-ole.h
  443. $(CC) -c $(CFLAGS) $(GTK_CFLAGS) $<
  444. midi_utils.o: midi_utils.c $(topsrc)/plugin/midi_utils.h
  445. $(CC) -c $(CFLAGS) $(GTK_CFLAGS) $<
  446. -include $(OBJS:.o=.d)
  447. # Distribution executable
  448. dist.stamp:
  449. bash ./mkwindist $(BUILDTYPE)
  450. .PHONY:
  451. dirs:
  452. mkdir -p dlls
  453. mkdir -p plugins
  454. mkdir -p import-libs
  455. cross_builddate: $(topsrc)/builddate.c
  456. gcc -Wall -o builddate $<
  457. native_builddate: $(topsrc)/builddate.c
  458. $(CC) -Wall -o builddate $<
  459. buildstamp: $(BUILDDATE)
  460. ./builddate
  461. clean:
  462. rm -f *.o *.d *.def *.exe $(CLIPROG) $(GUIPROG) $(CHECKER) dlls/*
  463. rm -f plugins/* $(PLUGINS)
  464. rm -f $(imports)/*.a
  465. rm -f gretl.stamp gretl.lang builddate build.h
  466. rm -f windist/MANIFEST windist/gretl.iss
  467. rm -rf windist/gretl windist/Output
  468. make -C updater clean
  469. make -C mo clean
  470. make -C db clean
  471. cleandist:
  472. rm -f windist/MANIFEST windist/gretl.iss
  473. rm -rf windist/gretl windist/gnuplot windist/Output
  474. dist: all dist.stamp