mirror of
https://github.com/LIV2/a4091-logic.git
synced 2025-12-06 06:22:43 +00:00
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.
25 lines
605 B
Makefile
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)
|
|
|