a4091-logic/Makefile
Stefan Reinauer 4448352575 Clean up JED file generation
In order to track versioning of individual JED files better,
add a better time stamp to each of them:
- If a JED files is checked into git already and no changes
  to the file occured, use the timestamp of the last change
  to this file. (Default)
- If a JED files is checked into git already and changes to
  the file occured, use the timestamp of the file's last
  modification.
- If a JED files is NOT checked into git already, also use
  the timestamp of the file's last modification.

In addition, recalculate the file checksum (not the same as
the data checksum) after this change, just in case.
2023-05-29 15:06:11 -07:00

25 lines
605 B
Makefile

SOURCES:=u202.pld u203.pld u205.pld u207.pld u303.pld u304.pld u305.pld u306.pld
SRC := $(SOURCES:%.pld=source/%.pld)
JED := $(SOURCES:%.pld=jedec/%.jed)
CUPL = LIBCUPL=C:\\Wincupl\\Shared\\cupl.dl WINEDEBUG=-all wine c:Wincupl/Shared/cupl.exe
OPT = 1
all: $(JED)
jedec/%.jed: source/%.pld Makefile util/jedcrc
$(CUPL) -jm$(OPT) $(LIBCUPL) $<
mv $(<:source/u%.pld=source/U%.jed) $(<:source/%.pld=jedec/%.jed)
util/fixup_jed.sh $< $(<:source/%.pld=jedec/%.jed)
jedec/u305.jed : OPT=3 # U305 says: COMPILE -M3
util/jedcrc : util/jedcrc.c
clean:
rm -f util/jedcrc
distclean: clean
rm -f $(JED)