Keep your time right
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
1.1 KiB

all: timekeeper timelogger timectrl
mkdir -p obj/
mv *.o obj/
CC = gcc
CFLAGS = -Wall
LFLAGS1 = -s -Wl,--cref,-M,-Map=TimeKeeper.map
LFLAGS2 = -s -Wl,--cref,-M,-Map=TimeLogger.map
LFLAGS3 = -s -Wl,--cref,-M,-Map=TimeCtrl.map
OBJECTS = arexx.o broker.o conv.o ctrlmsg.o global.o library.o log.o locale.o main.o mem.o \
message.o net_getaddrinfo.o net_poll.o net.o notify.o ptz.o setting.o shutdown.o \
sntp.o string.o sync.o text.o timer.o tz.o val.o win_main.o win_gad.o
OBJLOG = logger.o string.o
OBJCTRL = ctrl.o string.o
timekeeper: ${OBJECTS}
${CC} ${CFLAGS} ${LFLAGS1} -o TimeKeeper ${OBJECTS} ${LDLIBS}
mkdir -p obj/
mv TimeKeeper obj/
mv TimeKeeper.map obj/
timelogger: ${OBJLOG}
${CC} ${CFLAGS} ${LFLAGS2} -o TimeLogger ${OBJLOG} ${LDLIBS}
mkdir -p obj/
mv TimeLogger obj/
mv TimeLogger.map obj/
timectrl: ${OBJCTRL}
${CC} ${CFLAGS} ${LFLAGS3} -o TimeCtrl ${OBJCTRL} ${LDLIBS}
mkdir -p obj/
mv TimeCtrl obj/
mv TimeCtrl.map obj/
clean:
rm -Rf *.o
rm -Rf TimeLogger
rm -Rf TimeLogger.map
rm -Rf TimeKeeper
rm -Rf TimeKeeper.map
rm -Rf TimeCtrl
rm -Rf TimeCtrl.map
rm -Rf obj
depend:
@echo Dependencies already done