mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-19 21:49:22 +00:00
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# Package name for the code distribution.
|
|
PACKAGE= tzcode
|
|
|
|
# Version numbers of the code and data distributions.
|
|
VERSION= 2015d
|
|
|
|
# Email address for bug reports.
|
|
BUGEMAIL= carsten.larsen@mail.com
|
|
|
|
all: zic lib
|
|
|
|
CC = gcc
|
|
CFLAGS = -O2 -DTZDIR=\"LOCALE:zoneinfo\" -DHAVE_ADJTIME=0 -DHAVE_STDINT_H=1 -DHAVE_STRFTIME_L=0 -DHAVE_DOS_FILE_NAMES -DHAVE_LINK=0 -DHAVE_SYMLINK=0 -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -Dtime_tz=long -DTLOCALTIME_IMPLEMENTATION -Wall #-Werror
|
|
LDFLAGS =
|
|
LDLIBS = -lgcc -lm
|
|
|
|
AR = ar
|
|
|
|
private.h:
|
|
touch private.h
|
|
|
|
version.h:
|
|
(echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \
|
|
echo 'static char const TZVERSION[]="$(VERSION)";' && \
|
|
echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@
|
|
|
|
asctime.o: asctime.c private.h tzfile.h
|
|
|
|
date.o: date.c private.h
|
|
|
|
difftime.o: difftime.c
|
|
|
|
localtime.o: localtime.c private.h tzfile.h
|
|
|
|
strftime.o: strftime.c private.h tzfile.h
|
|
|
|
zdump.o: zdump.c private.h version.h
|
|
|
|
zic.o: zic.c private.h tzfile.h version.h
|
|
|
|
strtoll.o: strtoll.c
|
|
|
|
amiga_locale.o: amiga_locale.c
|
|
|
|
zic: zic.o
|
|
${CC} ${CFLAGS} -o zic zic.o $(LDFLAGS) $(LDLIBS)
|
|
|
|
zdump: zdump.o localtime.o asctime.o
|
|
${CC} ${CFLAGS} -o zdump zdump.o localtime.o asctime.o $(LDFLAGS) $(LDLIBS)
|
|
|
|
date: date.o localtime.o strftime.o asctime.o strtoll.o amiga_locale.o
|
|
${CC} ${CFLAGS} -o date date.o localtime.o strftime.o asctime.o strtoll.o amiga_locale.o $(LDFLAGS) $(LDLIBS)
|
|
|
|
lib: localtime.o asctime.o difftime.o strftime.o strtoll.o amiga_locale.o
|
|
${AR} rc libtz.a localtime.o asctime.o difftime.o strftime.o strtoll.o amiga_locale.o
|
|
|
|
clean:
|
|
rm -f asctime.o date.o difftime.o localtime.o strftime.o zdump.o zic.o aros.o zic zdump date libtz.a
|
|
|
|
depend:
|
|
@echo Dependencies already done
|