2024-02-02 05:57:46 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
|
|
bin_PROGRAMS = hcl
|
|
|
|
hcl_SOURCES = hcl.pas main.pas
|
|
|
|
hcl_CPPFLAGS =
|
|
|
|
hcl_DEPENDENCIES = hcl.bin
|
|
|
|
|
2024-02-12 15:57:30 +00:00
|
|
|
PASFLAGS = -Mobjfpc -FcUTF8 -g
|
|
|
|
if HCL_LIB_QUADMATH_REQUIRED
|
|
|
|
PASFLAGS += -dHCL_LIB_QUADMATH_REQUIRED
|
|
|
|
endif
|
|
|
|
|
2024-02-02 05:57:46 +00:00
|
|
|
hcl_LINK = cp -pf hcl.bin $(builddir)/hcl$(EXEEXT) || echo
|
|
|
|
|
|
|
|
hcl.bin: $(hcl_SOURCES) ../lib/libhcl.la $(hcl_OBJECTS)
|
2024-02-11 04:41:32 +00:00
|
|
|
FL='-Fl../lib:../lib/.libs'; \
|
2024-02-12 15:57:30 +00:00
|
|
|
for i in @HCL_SYS_LIB_SEARCH_PATH_SPEC@; do \
|
2024-02-11 04:41:32 +00:00
|
|
|
FL="$${FL}:$${i}"; \
|
|
|
|
done; \
|
2024-02-12 15:57:30 +00:00
|
|
|
echo fpc -o$(builddir)/$@ $(PASFLAGS) "$${FL}" $(srcdir)/main.pas; \
|
|
|
|
fpc -o$(builddir)/$@ $(PASFLAGS) $(PASFLAGS) "$${FL}" $(srcdir)/main.pas
|
2024-02-02 05:57:46 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -f *.ppu *.res hcl.bin
|