From 12aef07971796c801e4cce5284d9da414b8c0f49 Mon Sep 17 00:00:00 2001 From: White-Tiger Date: Wed, 18 Jun 2014 20:10:26 +0200 Subject: [PATCH] * moved project files to Source directory ! fixes related to GCC compiler warnings (unused function removed, wrong formatting options, "bad" initialization) * updated MinGW Makefile --- Makefile | 330 ----------------- Source/Clock/PageMouse.c | 1 - Source/Clock/StopWatch.c | 8 +- Source/Makefile | 334 ++++++++++++++++++ T-Clock 2010.sln => Source/T-Clock 2010.sln | 74 ++-- Source/T-Clock 2010.workspace | 8 + .../T-Clock-XPCalendar.cbp | 24 +- T-Clock-gcc.cbp => Source/T-Clock-gcc.cbp | 89 ++--- T-Clock.cbp => Source/T-Clock.cbp | 90 ++--- T-Clock64.cbp => Source/T-Clock64.cbp | 94 ++--- _SetEnv.cmd => Source/_SetEnv.cmd | 0 _SetEnv64.cmd => Source/_SetEnv64.cmd | 0 make_release.cmd => Source/make_release.cmd | 20 +- T-Clock 2010.workspace | 8 - 14 files changed, 542 insertions(+), 538 deletions(-) delete mode 100644 Makefile create mode 100644 Source/Makefile rename T-Clock 2010.sln => Source/T-Clock 2010.sln (84%) create mode 100644 Source/T-Clock 2010.workspace rename T-Clock-XPCalendar.cbp => Source/T-Clock-XPCalendar.cbp (79%) rename T-Clock-gcc.cbp => Source/T-Clock-gcc.cbp (73%) rename T-Clock.cbp => Source/T-Clock.cbp (73%) rename T-Clock64.cbp => Source/T-Clock64.cbp (74%) rename _SetEnv.cmd => Source/_SetEnv.cmd (100%) rename _SetEnv64.cmd => Source/_SetEnv64.cmd (100%) rename make_release.cmd => Source/make_release.cmd (89%) delete mode 100644 T-Clock 2010.workspace diff --git a/Makefile b/Makefile deleted file mode 100644 index 4988f4c5..00000000 --- a/Makefile +++ /dev/null @@ -1,330 +0,0 @@ -#------------------------------------------------------------------------------# -# This makefile was generated by 'cbp2make' tool rev.147 # -#------------------------------------------------------------------------------# - - -WORKDIR = %cd% - -CC = gcc.exe -CXX = g++.exe -AR = ar.exe -LD = g++.exe -WINDRES = windres.exe - -INC = -CFLAGS = -std=c99 -Wall -D__MINGW_USE_VC2005_COMPAT -DWINVER=0x0501 -RESINC = -LIBDIR = -LIB = -lAdvapi32 -luser32 -lgdi32 -lmsvcr100 -LDFLAGS = - -INC_APP = $(INC) -CFLAGS_APP = $(CFLAGS) -O2 -DNDEBUG -RESINC_APP = $(RESINC) -RCFLAGS_APP = $(RCFLAGS) -LIBDIR_APP = $(LIBDIR) -LRelease\Win32 -LIB_APP = $(LIB) -lPsapi -lole32 -lComdlg32 -lshlwapi -lVersion -lcomctl32 -lWinmm -lWs2_32 -lMpr -lUuid -ltClock -LDFLAGS_APP = $(LDFLAGS) -s -OBJDIR_APP = .obj -DEP_APP = -OUT_APP = Release\\Win32\\Clock.exe - -INC_DLL = $(INC) -CFLAGS_DLL = $(CFLAGS) -O2 -DNDEBUG -RESINC_DLL = $(RESINC) -RCFLAGS_DLL = $(RCFLAGS) -LIBDIR_DLL = $(LIBDIR) -LIB_DLL = $(LIB) -LDFLAGS_DLL = $(LDFLAGS) -s -OBJDIR_DLL = .obj -DEP_DLL = -OUT_DLL = Release\\Win32\\tClock.dll - -INC_APP_DEBUG = $(INC) -CFLAGS_APP_DEBUG = $(CFLAGS) -g -RESINC_APP_DEBUG = $(RESINC) -RCFLAGS_APP_DEBUG = $(RCFLAGS) -LIBDIR_APP_DEBUG = $(LIBDIR) -LDebug\Win32 -LIB_APP_DEBUG = $(LIB) -lPsapi -lole32 -lComdlg32 -lshlwapi -lVersion -lcomctl32 -lWinmm -lWs2_32 -lMpr -lUuid -ltClock -LDFLAGS_APP_DEBUG = $(LDFLAGS) -OBJDIR_APP_DEBUG = .obj\\dbg -DEP_APP_DEBUG = -OUT_APP_DEBUG = Debug\\Win32\\Clock.exe - -INC_DLL_DEBUG = $(INC) -CFLAGS_DLL_DEBUG = $(CFLAGS) -g -RESINC_DLL_DEBUG = $(RESINC) -RCFLAGS_DLL_DEBUG = $(RCFLAGS) -LIBDIR_DLL_DEBUG = $(LIBDIR) -LIB_DLL_DEBUG = $(LIB) -LDFLAGS_DLL_DEBUG = $(LDFLAGS) -OBJDIR_DLL_DEBUG = .obj\\dbg -DEP_DLL_DEBUG = -OUT_DLL_DEBUG = Debug\\Win32\\tClock.dll - -OBJ_APP = $(OBJDIR_APP)\\Source\\Clock\\pageformat.o $(OBJDIR_APP)\\Source\\Clock\\propsheet.o $(OBJDIR_APP)\\Source\\Clock\\soundselect.o $(OBJDIR_APP)\\Source\\Clock\\tClock.o $(OBJDIR_APP)\\Source\\Clock\\timer.o $(OBJDIR_APP)\\Source\\Clock\\utl.o $(OBJDIR_APP)\\Source\\Clock\\BounceWind.o $(OBJDIR_APP)\\Source\\Clock\\ExitWindows.o $(OBJDIR_APP)\\Source\\Clock\\GetSetTimePerms.o $(OBJDIR_APP)\\Source\\Clock\\PageHotKey.o $(OBJDIR_APP)\\Source\\Clock\\PageMisc.o $(OBJDIR_APP)\\Source\\Clock\\PageMouse.o $(OBJDIR_APP)\\Source\\Clock\\PageQuicky.o $(OBJDIR_APP)\\Source\\Clock\\PageQuickyMenu.o $(OBJDIR_APP)\\Source\\Clock\\SNTP.o $(OBJDIR_APP)\\Source\\Clock\\StopWatch.o $(OBJDIR_APP)\\Source\\Clock\\alarm.o $(OBJDIR_APP)\\Source\\Clock\\alarmday.o $(OBJDIR_APP)\\Source\\Clock\\main.o $(OBJDIR_APP)\\Source\\Clock\\menu.o $(OBJDIR_APP)\\Source\\Clock\\mouse.o $(OBJDIR_APP)\\Source\\Clock\\pageabout.o $(OBJDIR_APP)\\Source\\Clock\\pagealarm.o $(OBJDIR_APP)\\Source\\Clock\\pagecolor.o - -OBJ_DLL = $(OBJDIR_DLL)\\Source\\DLL\\Tclock.o $(OBJDIR_DLL)\\Source\\DLL\\font.o $(OBJDIR_DLL)\\Source\\DLL\\format.o $(OBJDIR_DLL)\\Source\\DLL\\main.o $(OBJDIR_DLL)\\Source\\DLL\\newapi.o $(OBJDIR_DLL)\\Source\\DLL\\utl.o $(OBJDIR_DLL)\\Source\\DLL\\version.o - -OBJ_APP_DEBUG = $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageformat.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\propsheet.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\soundselect.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\tClock.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\timer.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\utl.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\BounceWind.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\ExitWindows.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\GetSetTimePerms.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageHotKey.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMisc.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMouse.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuicky.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuickyMenu.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\SNTP.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\StopWatch.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarm.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarmday.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\main.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\menu.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\mouse.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageabout.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagealarm.o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagecolor.o - -OBJ_DLL_DEBUG = $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\Tclock.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\font.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\format.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\main.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\newapi.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\utl.o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\version.o - -all: dll app dll_debug app_debug - -clean: clean_app clean_dll clean_app_debug clean_dll_debug - -before_app: - cmd /c if not exist Release\\Win32 md Release\\Win32 - cmd /c if not exist $(OBJDIR_APP)\\Source\\Clock md $(OBJDIR_APP)\\Source\\Clock - -after_app: - -app: before_app out_app after_app - -out_app: before_app $(OBJ_APP) $(DEP_APP) - $(LD) $(LIBDIR_APP) -o $(OUT_APP) $(OBJ_APP) $(LDFLAGS_APP) -mwindows $(LIB_APP) - -$(OBJDIR_APP)\\Source\\Clock\\pageformat.o: Source\\Clock\\pageformat.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\pageformat.c -o $(OBJDIR_APP)\\Source\\Clock\\pageformat.o - -$(OBJDIR_APP)\\Source\\Clock\\propsheet.o: Source\\Clock\\propsheet.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\propsheet.c -o $(OBJDIR_APP)\\Source\\Clock\\propsheet.o - -$(OBJDIR_APP)\\Source\\Clock\\soundselect.o: Source\\Clock\\soundselect.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\soundselect.c -o $(OBJDIR_APP)\\Source\\Clock\\soundselect.o - -$(OBJDIR_APP)\\Source\\Clock\\tClock.o: Source\\Clock\\tClock.rc - $(WINDRES) -i Source\\Clock\\tClock.rc -J rc -o $(OBJDIR_APP)\\Source\\Clock\\tClock.o -O coff $(INC_APP) - -$(OBJDIR_APP)\\Source\\Clock\\timer.o: Source\\Clock\\timer.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\timer.c -o $(OBJDIR_APP)\\Source\\Clock\\timer.o - -$(OBJDIR_APP)\\Source\\Clock\\utl.o: Source\\Clock\\utl.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\utl.c -o $(OBJDIR_APP)\\Source\\Clock\\utl.o - -$(OBJDIR_APP)\\Source\\Clock\\BounceWind.o: Source\\Clock\\BounceWind.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\BounceWind.c -o $(OBJDIR_APP)\\Source\\Clock\\BounceWind.o - -$(OBJDIR_APP)\\Source\\Clock\\ExitWindows.o: Source\\Clock\\ExitWindows.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\ExitWindows.c -o $(OBJDIR_APP)\\Source\\Clock\\ExitWindows.o - -$(OBJDIR_APP)\\Source\\Clock\\GetSetTimePerms.o: Source\\Clock\\GetSetTimePerms.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\GetSetTimePerms.c -o $(OBJDIR_APP)\\Source\\Clock\\GetSetTimePerms.o - -$(OBJDIR_APP)\\Source\\Clock\\PageHotKey.o: Source\\Clock\\PageHotKey.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\PageHotKey.c -o $(OBJDIR_APP)\\Source\\Clock\\PageHotKey.o - -$(OBJDIR_APP)\\Source\\Clock\\PageMisc.o: Source\\Clock\\PageMisc.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\PageMisc.c -o $(OBJDIR_APP)\\Source\\Clock\\PageMisc.o - -$(OBJDIR_APP)\\Source\\Clock\\PageMouse.o: Source\\Clock\\PageMouse.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\PageMouse.c -o $(OBJDIR_APP)\\Source\\Clock\\PageMouse.o - -$(OBJDIR_APP)\\Source\\Clock\\PageQuicky.o: Source\\Clock\\PageQuicky.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\PageQuicky.c -o $(OBJDIR_APP)\\Source\\Clock\\PageQuicky.o - -$(OBJDIR_APP)\\Source\\Clock\\PageQuickyMenu.o: Source\\Clock\\PageQuickyMenu.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\PageQuickyMenu.c -o $(OBJDIR_APP)\\Source\\Clock\\PageQuickyMenu.o - -$(OBJDIR_APP)\\Source\\Clock\\SNTP.o: Source\\Clock\\SNTP.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\SNTP.c -o $(OBJDIR_APP)\\Source\\Clock\\SNTP.o - -$(OBJDIR_APP)\\Source\\Clock\\StopWatch.o: Source\\Clock\\StopWatch.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\StopWatch.c -o $(OBJDIR_APP)\\Source\\Clock\\StopWatch.o - -$(OBJDIR_APP)\\Source\\Clock\\alarm.o: Source\\Clock\\alarm.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\alarm.c -o $(OBJDIR_APP)\\Source\\Clock\\alarm.o - -$(OBJDIR_APP)\\Source\\Clock\\alarmday.o: Source\\Clock\\alarmday.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\alarmday.c -o $(OBJDIR_APP)\\Source\\Clock\\alarmday.o - -$(OBJDIR_APP)\\Source\\Clock\\main.o: Source\\Clock\\main.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\main.c -o $(OBJDIR_APP)\\Source\\Clock\\main.o - -$(OBJDIR_APP)\\Source\\Clock\\menu.o: Source\\Clock\\menu.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\menu.c -o $(OBJDIR_APP)\\Source\\Clock\\menu.o - -$(OBJDIR_APP)\\Source\\Clock\\mouse.o: Source\\Clock\\mouse.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\mouse.c -o $(OBJDIR_APP)\\Source\\Clock\\mouse.o - -$(OBJDIR_APP)\\Source\\Clock\\pageabout.o: Source\\Clock\\pageabout.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\pageabout.c -o $(OBJDIR_APP)\\Source\\Clock\\pageabout.o - -$(OBJDIR_APP)\\Source\\Clock\\pagealarm.o: Source\\Clock\\pagealarm.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\pagealarm.c -o $(OBJDIR_APP)\\Source\\Clock\\pagealarm.o - -$(OBJDIR_APP)\\Source\\Clock\\pagecolor.o: Source\\Clock\\pagecolor.c - $(CC) $(CFLAGS_APP) $(INC_APP) -c Source\\Clock\\pagecolor.c -o $(OBJDIR_APP)\\Source\\Clock\\pagecolor.o - -clean_app: - cmd /c del /f $(OBJ_APP) $(OUT_APP) - cmd /c rd Release\\Win32 - cmd /c rd $(OBJDIR_APP)\\Source\\Clock - -before_dll: - cmd /c if not exist Release\\Win32 md Release\\Win32 - cmd /c if not exist $(OBJDIR_DLL)\\Source\\DLL md $(OBJDIR_DLL)\\Source\\DLL - -after_dll: - -dll: before_dll out_dll after_dll - -out_dll: before_dll $(OBJ_DLL) $(DEP_DLL) - $(LD) -shared $(LIBDIR_DLL) $(OBJ_DLL) -o $(OUT_DLL) $(LDFLAGS_DLL) $(LIB_DLL) - -$(OBJDIR_DLL)\\Source\\DLL\\Tclock.o: Source\\DLL\\Tclock.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\Tclock.c -o $(OBJDIR_DLL)\\Source\\DLL\\Tclock.o - -$(OBJDIR_DLL)\\Source\\DLL\\font.o: Source\\DLL\\font.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\font.c -o $(OBJDIR_DLL)\\Source\\DLL\\font.o - -$(OBJDIR_DLL)\\Source\\DLL\\format.o: Source\\DLL\\format.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\format.c -o $(OBJDIR_DLL)\\Source\\DLL\\format.o - -$(OBJDIR_DLL)\\Source\\DLL\\main.o: Source\\DLL\\main.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\main.c -o $(OBJDIR_DLL)\\Source\\DLL\\main.o - -$(OBJDIR_DLL)\\Source\\DLL\\newapi.o: Source\\DLL\\newapi.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\newapi.c -o $(OBJDIR_DLL)\\Source\\DLL\\newapi.o - -$(OBJDIR_DLL)\\Source\\DLL\\utl.o: Source\\DLL\\utl.c - $(CC) $(CFLAGS_DLL) $(INC_DLL) -c Source\\DLL\\utl.c -o $(OBJDIR_DLL)\\Source\\DLL\\utl.o - -$(OBJDIR_DLL)\\Source\\DLL\\version.o: Source\\DLL\\version.rc - $(WINDRES) -i Source\\DLL\\version.rc -J rc -o $(OBJDIR_DLL)\\Source\\DLL\\version.o -O coff $(INC_DLL) - -clean_dll: - cmd /c del /f $(OBJ_DLL) $(OUT_DLL) - cmd /c rd Release\\Win32 - cmd /c rd $(OBJDIR_DLL)\\Source\\DLL - -before_app_debug: - cmd /c if not exist Debug\\Win32 md Debug\\Win32 - cmd /c if not exist $(OBJDIR_APP_DEBUG)\\Source\\Clock md $(OBJDIR_APP_DEBUG)\\Source\\Clock - -after_app_debug: - -app_debug: before_app_debug out_app_debug after_app_debug - -out_app_debug: before_app_debug $(OBJ_APP_DEBUG) $(DEP_APP_DEBUG) - $(LD) $(LIBDIR_APP_DEBUG) -o $(OUT_APP_DEBUG) $(OBJ_APP_DEBUG) $(LDFLAGS_APP_DEBUG) -mwindows $(LIB_APP_DEBUG) - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageformat.o: Source\\Clock\\pageformat.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\pageformat.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageformat.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\propsheet.o: Source\\Clock\\propsheet.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\propsheet.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\propsheet.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\soundselect.o: Source\\Clock\\soundselect.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\soundselect.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\soundselect.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\tClock.o: Source\\Clock\\tClock.rc - $(WINDRES) -i Source\\Clock\\tClock.rc -J rc -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\tClock.o -O coff $(INC_APP_DEBUG) - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\timer.o: Source\\Clock\\timer.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\timer.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\timer.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\utl.o: Source\\Clock\\utl.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\utl.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\utl.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\BounceWind.o: Source\\Clock\\BounceWind.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\BounceWind.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\BounceWind.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\ExitWindows.o: Source\\Clock\\ExitWindows.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\ExitWindows.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\ExitWindows.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\GetSetTimePerms.o: Source\\Clock\\GetSetTimePerms.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\GetSetTimePerms.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\GetSetTimePerms.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageHotKey.o: Source\\Clock\\PageHotKey.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\PageHotKey.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageHotKey.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMisc.o: Source\\Clock\\PageMisc.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\PageMisc.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMisc.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMouse.o: Source\\Clock\\PageMouse.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\PageMouse.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageMouse.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuicky.o: Source\\Clock\\PageQuicky.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\PageQuicky.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuicky.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuickyMenu.o: Source\\Clock\\PageQuickyMenu.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\PageQuickyMenu.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\PageQuickyMenu.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\SNTP.o: Source\\Clock\\SNTP.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\SNTP.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\SNTP.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\StopWatch.o: Source\\Clock\\StopWatch.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\StopWatch.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\StopWatch.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarm.o: Source\\Clock\\alarm.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\alarm.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarm.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarmday.o: Source\\Clock\\alarmday.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\alarmday.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\alarmday.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\main.o: Source\\Clock\\main.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\main.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\main.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\menu.o: Source\\Clock\\menu.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\menu.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\menu.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\mouse.o: Source\\Clock\\mouse.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\mouse.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\mouse.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageabout.o: Source\\Clock\\pageabout.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\pageabout.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pageabout.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagealarm.o: Source\\Clock\\pagealarm.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\pagealarm.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagealarm.o - -$(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagecolor.o: Source\\Clock\\pagecolor.c - $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Source\\Clock\\pagecolor.c -o $(OBJDIR_APP_DEBUG)\\Source\\Clock\\pagecolor.o - -clean_app_debug: - cmd /c del /f $(OBJ_APP_DEBUG) $(OUT_APP_DEBUG) - cmd /c rd Debug\\Win32 - cmd /c rd $(OBJDIR_APP_DEBUG)\\Source\\Clock - -before_dll_debug: - cmd /c if not exist Debug\\Win32 md Debug\\Win32 - cmd /c if not exist $(OBJDIR_DLL_DEBUG)\\Source\\DLL md $(OBJDIR_DLL_DEBUG)\\Source\\DLL - -after_dll_debug: - -dll_debug: before_dll_debug out_dll_debug after_dll_debug - -out_dll_debug: before_dll_debug $(OBJ_DLL_DEBUG) $(DEP_DLL_DEBUG) - $(LD) -shared $(LIBDIR_DLL_DEBUG) $(OBJ_DLL_DEBUG) -o $(OUT_DLL_DEBUG) $(LDFLAGS_DLL_DEBUG) $(LIB_DLL_DEBUG) - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\Tclock.o: Source\\DLL\\Tclock.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\Tclock.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\Tclock.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\font.o: Source\\DLL\\font.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\font.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\font.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\format.o: Source\\DLL\\format.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\format.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\format.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\main.o: Source\\DLL\\main.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\main.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\main.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\newapi.o: Source\\DLL\\newapi.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\newapi.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\newapi.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\utl.o: Source\\DLL\\utl.c - $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c Source\\DLL\\utl.c -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\utl.o - -$(OBJDIR_DLL_DEBUG)\\Source\\DLL\\version.o: Source\\DLL\\version.rc - $(WINDRES) -i Source\\DLL\\version.rc -J rc -o $(OBJDIR_DLL_DEBUG)\\Source\\DLL\\version.o -O coff $(INC_DLL_DEBUG) - -clean_dll_debug: - cmd /c del /f $(OBJ_DLL_DEBUG) $(OUT_DLL_DEBUG) - cmd /c rd Debug\\Win32 - cmd /c rd $(OBJDIR_DLL_DEBUG)\\Source\\DLL - -virtual_debug: dll_debug app_debug - -.PHONY: before_app after_app clean_app before_dll after_dll clean_dll before_app_debug after_app_debug clean_app_debug before_dll_debug after_dll_debug clean_dll_debug - diff --git a/Source/Clock/PageMouse.c b/Source/Clock/PageMouse.c index a9241de4..eebd87b0 100644 --- a/Source/Clock/PageMouse.c +++ b/Source/Clock/PageMouse.c @@ -7,7 +7,6 @@ static void OnInit(HWND hDlg,HWND* hList); static void OnApply(HWND hDlg); static void OnDestroy(); -static void OnMouseFileChange(HWND hDlg); static void OnSansho(HWND hDlg, WORD id); static void InitMouseFuncList(HWND hDlg); diff --git a/Source/Clock/StopWatch.c b/Source/Clock/StopWatch.c index 8c0944f0..9d8d858f 100644 --- a/Source/Clock/StopWatch.c +++ b/Source/Clock/StopWatch.c @@ -2,9 +2,9 @@ // Modified by Stoic Joker: Monday, 03/22/2010 @ 7:32:29pm #include "tclock.h" -LARGE_INTEGER g_frequency={0}; +LARGE_INTEGER g_frequency={{0}}; LARGE_INTEGER g_start;// start time -LARGE_INTEGER g_lap={0};// latest lap time +LARGE_INTEGER g_lap={{0}};// latest lap time LARGE_INTEGER g_stop;// latest lap time BOOL g_paused; // Global Pause/Resume Displayed Counter. //================================================================================================ @@ -55,7 +55,7 @@ void OnTimer(HWND hDlg) //---------------------------------------------------- hrs=un.elapsed/3600000; un.elapsed%=3600000; min=un.elapsed/60000; un.elapsed%=60000; sec=un.elapsed/1000; un.elapsed%=1000; - sprintf(szElapsed,"%02dH: %02dM: %02dS: %03dms",hrs,min,sec,un.elapsed); + sprintf(szElapsed,"%02dH: %02dM: %02dS: %03lums",hrs,min,sec,un.elapsed); SetDlgItemText(hDlg, IDCE_SW_ELAPSED, szElapsed); } //================================================================================================ @@ -88,7 +88,7 @@ void InsertLapTime(HWND hList) //--------------------------------------------- lvItem.pszText=buf; ListView_InsertItem(hList,&lvItem); - sprintf(buf,"%02d:%02d:%02d.%03d",hrs,min,elapsed/1000,elapsed%1000); + sprintf(buf,"%02d:%02d:%02lu.%03lu",hrs,min,elapsed/1000,elapsed%1000); lvItem.iSubItem=1; ListView_SetItem(hList,&lvItem); } diff --git a/Source/Makefile b/Source/Makefile new file mode 100644 index 00000000..15a572d0 --- /dev/null +++ b/Source/Makefile @@ -0,0 +1,334 @@ +#------------------------------------------------------------------------------# +# This makefile was generated by 'cbp2make' tool rev.147 # +#------------------------------------------------------------------------------# + + +WORKDIR = %cd% + +CC = gcc.exe +CXX = g++.exe +AR = ar.exe +LD = g++.exe +WINDRES = windres.exe + +INC = +CFLAGS = -std=c99 -Wall -D__MINGW_USE_VC2005_COMPAT -DWINVER=0x0501 +RESINC = +LIBDIR = +LIB = -lAdvapi32 -lUser32 -lgdi32 -lmsvcr100 -lUxTheme +LDFLAGS = + +INC_APP = $(INC) +CFLAGS_APP = $(CFLAGS) -O2 -DNDEBUG +RESINC_APP = $(RESINC) +RCFLAGS_APP = $(RCFLAGS) +LIBDIR_APP = $(LIBDIR) -L..\Release\Win32 +LIB_APP = $(LIB) -lPsapi -lole32 -lComdlg32 -lshlwapi -lVersion -lcomctl32 -lWinmm -lWs2_32 -lMpr -lUuid -ltClock +LDFLAGS_APP = $(LDFLAGS) -s +OBJDIR_APP = .obj +DEP_APP = +OUT_APP = ..\\Release\\Win32\\Clock.exe + +INC_DLL = $(INC) +CFLAGS_DLL = $(CFLAGS) -O2 -DNDEBUG +RESINC_DLL = $(RESINC) +RCFLAGS_DLL = $(RCFLAGS) +LIBDIR_DLL = $(LIBDIR) +LIB_DLL = $(LIB) +LDFLAGS_DLL = $(LDFLAGS) -s +OBJDIR_DLL = .obj +DEP_DLL = +DEF_DLL = ..\\Release\\Win32\\tClock.def +SHAREDINT_DLL = ..\\Release\\Win32\\libtClock.a +OUT_DLL = ..\\Release\\Win32\\tClock.dll + +INC_APP_DEBUG = $(INC) +CFLAGS_APP_DEBUG = $(CFLAGS) -g +RESINC_APP_DEBUG = $(RESINC) +RCFLAGS_APP_DEBUG = $(RCFLAGS) +LIBDIR_APP_DEBUG = $(LIBDIR) -L..\Debug\Win32 +LIB_APP_DEBUG = $(LIB) -lPsapi -lole32 -lComdlg32 -lshlwapi -lVersion -lcomctl32 -lWinmm -lWs2_32 -lMpr -lUuid -ltClock +LDFLAGS_APP_DEBUG = $(LDFLAGS) +OBJDIR_APP_DEBUG = .obj\\dbg +DEP_APP_DEBUG = +OUT_APP_DEBUG = ..\\Debug\\Win32\\Clock.exe + +INC_DLL_DEBUG = $(INC) +CFLAGS_DLL_DEBUG = $(CFLAGS) -g +RESINC_DLL_DEBUG = $(RESINC) +RCFLAGS_DLL_DEBUG = $(RCFLAGS) +LIBDIR_DLL_DEBUG = $(LIBDIR) +LIB_DLL_DEBUG = $(LIB) +LDFLAGS_DLL_DEBUG = $(LDFLAGS) +OBJDIR_DLL_DEBUG = .obj\\dbg +DEP_DLL_DEBUG = +DEF_DLL_DEBUG = ..\\Debug\\Win32\\tClock.def +SHAREDINT_DLL_DEBUG = ..\\Debug\\Win32\\libtClock.a +OUT_DLL_DEBUG = ..\\Debug\\Win32\\tClock.dll + +OBJ_APP = $(OBJDIR_APP)\\Clock\\pageformat.o $(OBJDIR_APP)\\Clock\\propsheet.o $(OBJDIR_APP)\\Clock\\soundselect.o $(OBJDIR_APP)\\Clock\\tClock.o $(OBJDIR_APP)\\Clock\\timer.o $(OBJDIR_APP)\\Clock\\utl.o $(OBJDIR_APP)\\Clock\\pagecolor.o $(OBJDIR_APP)\\Clock\\StopWatch.o $(OBJDIR_APP)\\Clock\\ExitWindows.o $(OBJDIR_APP)\\Clock\\GetSetTimePerms.o $(OBJDIR_APP)\\Clock\\PageHotKey.o $(OBJDIR_APP)\\Clock\\PageMisc.o $(OBJDIR_APP)\\Clock\\PageMouse.o $(OBJDIR_APP)\\Clock\\PageQuicky.o $(OBJDIR_APP)\\Clock\\PageQuickyMenu.o $(OBJDIR_APP)\\Clock\\SNTP.o $(OBJDIR_APP)\\Clock\\BounceWind.o $(OBJDIR_APP)\\Clock\\alarm.o $(OBJDIR_APP)\\Clock\\alarmday.o $(OBJDIR_APP)\\Clock\\main.o $(OBJDIR_APP)\\Clock\\menu.o $(OBJDIR_APP)\\Clock\\mouse.o $(OBJDIR_APP)\\Clock\\pageabout.o $(OBJDIR_APP)\\Clock\\pagealarm.o + +OBJ_DLL = $(OBJDIR_DLL)\\DLL\\Tclock.o $(OBJDIR_DLL)\\DLL\\font.o $(OBJDIR_DLL)\\DLL\\format.o $(OBJDIR_DLL)\\DLL\\main.o $(OBJDIR_DLL)\\DLL\\newapi.o $(OBJDIR_DLL)\\DLL\\utl.o $(OBJDIR_DLL)\\DLL\\version.o + +OBJ_APP_DEBUG = $(OBJDIR_APP_DEBUG)\\Clock\\pageformat.o $(OBJDIR_APP_DEBUG)\\Clock\\propsheet.o $(OBJDIR_APP_DEBUG)\\Clock\\soundselect.o $(OBJDIR_APP_DEBUG)\\Clock\\tClock.o $(OBJDIR_APP_DEBUG)\\Clock\\timer.o $(OBJDIR_APP_DEBUG)\\Clock\\utl.o $(OBJDIR_APP_DEBUG)\\Clock\\pagecolor.o $(OBJDIR_APP_DEBUG)\\Clock\\StopWatch.o $(OBJDIR_APP_DEBUG)\\Clock\\ExitWindows.o $(OBJDIR_APP_DEBUG)\\Clock\\GetSetTimePerms.o $(OBJDIR_APP_DEBUG)\\Clock\\PageHotKey.o $(OBJDIR_APP_DEBUG)\\Clock\\PageMisc.o $(OBJDIR_APP_DEBUG)\\Clock\\PageMouse.o $(OBJDIR_APP_DEBUG)\\Clock\\PageQuicky.o $(OBJDIR_APP_DEBUG)\\Clock\\PageQuickyMenu.o $(OBJDIR_APP_DEBUG)\\Clock\\SNTP.o $(OBJDIR_APP_DEBUG)\\Clock\\BounceWind.o $(OBJDIR_APP_DEBUG)\\Clock\\alarm.o $(OBJDIR_APP_DEBUG)\\Clock\\alarmday.o $(OBJDIR_APP_DEBUG)\\Clock\\main.o $(OBJDIR_APP_DEBUG)\\Clock\\menu.o $(OBJDIR_APP_DEBUG)\\Clock\\mouse.o $(OBJDIR_APP_DEBUG)\\Clock\\pageabout.o $(OBJDIR_APP_DEBUG)\\Clock\\pagealarm.o + +OBJ_DLL_DEBUG = $(OBJDIR_DLL_DEBUG)\\DLL\\Tclock.o $(OBJDIR_DLL_DEBUG)\\DLL\\font.o $(OBJDIR_DLL_DEBUG)\\DLL\\format.o $(OBJDIR_DLL_DEBUG)\\DLL\\main.o $(OBJDIR_DLL_DEBUG)\\DLL\\newapi.o $(OBJDIR_DLL_DEBUG)\\DLL\\utl.o $(OBJDIR_DLL_DEBUG)\\DLL\\version.o + +all: dll app dll_debug app_debug + +clean: clean_app clean_dll clean_app_debug clean_dll_debug + +before_app: + cmd /c if not exist ..\\Release\\Win32 md ..\\Release\\Win32 + cmd /c if not exist $(OBJDIR_APP)\\Clock md $(OBJDIR_APP)\\Clock + +after_app: + +app: before_app out_app after_app + +out_app: before_app $(OBJ_APP) $(DEP_APP) + $(LD) $(LIBDIR_APP) -o $(OUT_APP) $(OBJ_APP) $(LDFLAGS_APP) -mwindows $(LIB_APP) + +$(OBJDIR_APP)\\Clock\\pageformat.o: Clock\\pageformat.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\pageformat.c -o $(OBJDIR_APP)\\Clock\\pageformat.o + +$(OBJDIR_APP)\\Clock\\propsheet.o: Clock\\propsheet.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\propsheet.c -o $(OBJDIR_APP)\\Clock\\propsheet.o + +$(OBJDIR_APP)\\Clock\\soundselect.o: Clock\\soundselect.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\soundselect.c -o $(OBJDIR_APP)\\Clock\\soundselect.o + +$(OBJDIR_APP)\\Clock\\tClock.o: Clock\\tClock.rc + $(WINDRES) -i Clock\\tClock.rc -J rc -o $(OBJDIR_APP)\\Clock\\tClock.o -O coff $(INC_APP) + +$(OBJDIR_APP)\\Clock\\timer.o: Clock\\timer.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\timer.c -o $(OBJDIR_APP)\\Clock\\timer.o + +$(OBJDIR_APP)\\Clock\\utl.o: Clock\\utl.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\utl.c -o $(OBJDIR_APP)\\Clock\\utl.o + +$(OBJDIR_APP)\\Clock\\pagecolor.o: Clock\\pagecolor.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\pagecolor.c -o $(OBJDIR_APP)\\Clock\\pagecolor.o + +$(OBJDIR_APP)\\Clock\\StopWatch.o: Clock\\StopWatch.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\StopWatch.c -o $(OBJDIR_APP)\\Clock\\StopWatch.o + +$(OBJDIR_APP)\\Clock\\ExitWindows.o: Clock\\ExitWindows.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\ExitWindows.c -o $(OBJDIR_APP)\\Clock\\ExitWindows.o + +$(OBJDIR_APP)\\Clock\\GetSetTimePerms.o: Clock\\GetSetTimePerms.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\GetSetTimePerms.c -o $(OBJDIR_APP)\\Clock\\GetSetTimePerms.o + +$(OBJDIR_APP)\\Clock\\PageHotKey.o: Clock\\PageHotKey.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\PageHotKey.c -o $(OBJDIR_APP)\\Clock\\PageHotKey.o + +$(OBJDIR_APP)\\Clock\\PageMisc.o: Clock\\PageMisc.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\PageMisc.c -o $(OBJDIR_APP)\\Clock\\PageMisc.o + +$(OBJDIR_APP)\\Clock\\PageMouse.o: Clock\\PageMouse.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\PageMouse.c -o $(OBJDIR_APP)\\Clock\\PageMouse.o + +$(OBJDIR_APP)\\Clock\\PageQuicky.o: Clock\\PageQuicky.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\PageQuicky.c -o $(OBJDIR_APP)\\Clock\\PageQuicky.o + +$(OBJDIR_APP)\\Clock\\PageQuickyMenu.o: Clock\\PageQuickyMenu.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\PageQuickyMenu.c -o $(OBJDIR_APP)\\Clock\\PageQuickyMenu.o + +$(OBJDIR_APP)\\Clock\\SNTP.o: Clock\\SNTP.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\SNTP.c -o $(OBJDIR_APP)\\Clock\\SNTP.o + +$(OBJDIR_APP)\\Clock\\BounceWind.o: Clock\\BounceWind.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\BounceWind.c -o $(OBJDIR_APP)\\Clock\\BounceWind.o + +$(OBJDIR_APP)\\Clock\\alarm.o: Clock\\alarm.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\alarm.c -o $(OBJDIR_APP)\\Clock\\alarm.o + +$(OBJDIR_APP)\\Clock\\alarmday.o: Clock\\alarmday.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\alarmday.c -o $(OBJDIR_APP)\\Clock\\alarmday.o + +$(OBJDIR_APP)\\Clock\\main.o: Clock\\main.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\main.c -o $(OBJDIR_APP)\\Clock\\main.o + +$(OBJDIR_APP)\\Clock\\menu.o: Clock\\menu.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\menu.c -o $(OBJDIR_APP)\\Clock\\menu.o + +$(OBJDIR_APP)\\Clock\\mouse.o: Clock\\mouse.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\mouse.c -o $(OBJDIR_APP)\\Clock\\mouse.o + +$(OBJDIR_APP)\\Clock\\pageabout.o: Clock\\pageabout.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\pageabout.c -o $(OBJDIR_APP)\\Clock\\pageabout.o + +$(OBJDIR_APP)\\Clock\\pagealarm.o: Clock\\pagealarm.c + $(CC) $(CFLAGS_APP) $(INC_APP) -c Clock\\pagealarm.c -o $(OBJDIR_APP)\\Clock\\pagealarm.o + +clean_app: + cmd /c del /f $(OBJ_APP) $(OUT_APP) + cmd /c rd ..\\Release\\Win32 + cmd /c rd $(OBJDIR_APP)\\Clock + +before_dll: + cmd /c if not exist ..\\Release\\Win32 md ..\\Release\\Win32 + cmd /c if not exist $(OBJDIR_DLL)\\DLL md $(OBJDIR_DLL)\\DLL + +after_dll: + +dll: before_dll out_dll after_dll + +out_dll: before_dll $(OBJ_DLL) $(DEP_DLL) + $(LD) -shared $(LIBDIR_DLL) $(OBJ_DLL) -o $(OUT_DLL) $(LDFLAGS_DLL) $(LIB_DLL) + +$(OBJDIR_DLL)\\DLL\\Tclock.o: DLL\\Tclock.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\Tclock.c -o $(OBJDIR_DLL)\\DLL\\Tclock.o + +$(OBJDIR_DLL)\\DLL\\font.o: DLL\\font.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\font.c -o $(OBJDIR_DLL)\\DLL\\font.o + +$(OBJDIR_DLL)\\DLL\\format.o: DLL\\format.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\format.c -o $(OBJDIR_DLL)\\DLL\\format.o + +$(OBJDIR_DLL)\\DLL\\main.o: DLL\\main.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\main.c -o $(OBJDIR_DLL)\\DLL\\main.o + +$(OBJDIR_DLL)\\DLL\\newapi.o: DLL\\newapi.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\newapi.c -o $(OBJDIR_DLL)\\DLL\\newapi.o + +$(OBJDIR_DLL)\\DLL\\utl.o: DLL\\utl.c + $(CC) $(CFLAGS_DLL) $(INC_DLL) -c DLL\\utl.c -o $(OBJDIR_DLL)\\DLL\\utl.o + +$(OBJDIR_DLL)\\DLL\\version.o: DLL\\version.rc + $(WINDRES) -i DLL\\version.rc -J rc -o $(OBJDIR_DLL)\\DLL\\version.o -O coff $(INC_DLL) + +clean_dll: + cmd /c del /f $(OBJ_DLL) $(OUT_DLL) + cmd /c rd ..\\Release\\Win32 + cmd /c rd $(OBJDIR_DLL)\\DLL + +before_app_debug: + cmd /c if not exist ..\\Debug\\Win32 md ..\\Debug\\Win32 + cmd /c if not exist $(OBJDIR_APP_DEBUG)\\Clock md $(OBJDIR_APP_DEBUG)\\Clock + +after_app_debug: + +app_debug: before_app_debug out_app_debug after_app_debug + +out_app_debug: before_app_debug $(OBJ_APP_DEBUG) $(DEP_APP_DEBUG) + $(LD) $(LIBDIR_APP_DEBUG) -o $(OUT_APP_DEBUG) $(OBJ_APP_DEBUG) $(LDFLAGS_APP_DEBUG) -mwindows $(LIB_APP_DEBUG) + +$(OBJDIR_APP_DEBUG)\\Clock\\pageformat.o: Clock\\pageformat.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\pageformat.c -o $(OBJDIR_APP_DEBUG)\\Clock\\pageformat.o + +$(OBJDIR_APP_DEBUG)\\Clock\\propsheet.o: Clock\\propsheet.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\propsheet.c -o $(OBJDIR_APP_DEBUG)\\Clock\\propsheet.o + +$(OBJDIR_APP_DEBUG)\\Clock\\soundselect.o: Clock\\soundselect.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\soundselect.c -o $(OBJDIR_APP_DEBUG)\\Clock\\soundselect.o + +$(OBJDIR_APP_DEBUG)\\Clock\\tClock.o: Clock\\tClock.rc + $(WINDRES) -i Clock\\tClock.rc -J rc -o $(OBJDIR_APP_DEBUG)\\Clock\\tClock.o -O coff $(INC_APP_DEBUG) + +$(OBJDIR_APP_DEBUG)\\Clock\\timer.o: Clock\\timer.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\timer.c -o $(OBJDIR_APP_DEBUG)\\Clock\\timer.o + +$(OBJDIR_APP_DEBUG)\\Clock\\utl.o: Clock\\utl.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\utl.c -o $(OBJDIR_APP_DEBUG)\\Clock\\utl.o + +$(OBJDIR_APP_DEBUG)\\Clock\\pagecolor.o: Clock\\pagecolor.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\pagecolor.c -o $(OBJDIR_APP_DEBUG)\\Clock\\pagecolor.o + +$(OBJDIR_APP_DEBUG)\\Clock\\StopWatch.o: Clock\\StopWatch.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\StopWatch.c -o $(OBJDIR_APP_DEBUG)\\Clock\\StopWatch.o + +$(OBJDIR_APP_DEBUG)\\Clock\\ExitWindows.o: Clock\\ExitWindows.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\ExitWindows.c -o $(OBJDIR_APP_DEBUG)\\Clock\\ExitWindows.o + +$(OBJDIR_APP_DEBUG)\\Clock\\GetSetTimePerms.o: Clock\\GetSetTimePerms.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\GetSetTimePerms.c -o $(OBJDIR_APP_DEBUG)\\Clock\\GetSetTimePerms.o + +$(OBJDIR_APP_DEBUG)\\Clock\\PageHotKey.o: Clock\\PageHotKey.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\PageHotKey.c -o $(OBJDIR_APP_DEBUG)\\Clock\\PageHotKey.o + +$(OBJDIR_APP_DEBUG)\\Clock\\PageMisc.o: Clock\\PageMisc.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\PageMisc.c -o $(OBJDIR_APP_DEBUG)\\Clock\\PageMisc.o + +$(OBJDIR_APP_DEBUG)\\Clock\\PageMouse.o: Clock\\PageMouse.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\PageMouse.c -o $(OBJDIR_APP_DEBUG)\\Clock\\PageMouse.o + +$(OBJDIR_APP_DEBUG)\\Clock\\PageQuicky.o: Clock\\PageQuicky.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\PageQuicky.c -o $(OBJDIR_APP_DEBUG)\\Clock\\PageQuicky.o + +$(OBJDIR_APP_DEBUG)\\Clock\\PageQuickyMenu.o: Clock\\PageQuickyMenu.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\PageQuickyMenu.c -o $(OBJDIR_APP_DEBUG)\\Clock\\PageQuickyMenu.o + +$(OBJDIR_APP_DEBUG)\\Clock\\SNTP.o: Clock\\SNTP.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\SNTP.c -o $(OBJDIR_APP_DEBUG)\\Clock\\SNTP.o + +$(OBJDIR_APP_DEBUG)\\Clock\\BounceWind.o: Clock\\BounceWind.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\BounceWind.c -o $(OBJDIR_APP_DEBUG)\\Clock\\BounceWind.o + +$(OBJDIR_APP_DEBUG)\\Clock\\alarm.o: Clock\\alarm.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\alarm.c -o $(OBJDIR_APP_DEBUG)\\Clock\\alarm.o + +$(OBJDIR_APP_DEBUG)\\Clock\\alarmday.o: Clock\\alarmday.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\alarmday.c -o $(OBJDIR_APP_DEBUG)\\Clock\\alarmday.o + +$(OBJDIR_APP_DEBUG)\\Clock\\main.o: Clock\\main.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\main.c -o $(OBJDIR_APP_DEBUG)\\Clock\\main.o + +$(OBJDIR_APP_DEBUG)\\Clock\\menu.o: Clock\\menu.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\menu.c -o $(OBJDIR_APP_DEBUG)\\Clock\\menu.o + +$(OBJDIR_APP_DEBUG)\\Clock\\mouse.o: Clock\\mouse.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\mouse.c -o $(OBJDIR_APP_DEBUG)\\Clock\\mouse.o + +$(OBJDIR_APP_DEBUG)\\Clock\\pageabout.o: Clock\\pageabout.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\pageabout.c -o $(OBJDIR_APP_DEBUG)\\Clock\\pageabout.o + +$(OBJDIR_APP_DEBUG)\\Clock\\pagealarm.o: Clock\\pagealarm.c + $(CC) $(CFLAGS_APP_DEBUG) $(INC_APP_DEBUG) -c Clock\\pagealarm.c -o $(OBJDIR_APP_DEBUG)\\Clock\\pagealarm.o + +clean_app_debug: + cmd /c del /f $(OBJ_APP_DEBUG) $(OUT_APP_DEBUG) + cmd /c rd ..\\Debug\\Win32 + cmd /c rd $(OBJDIR_APP_DEBUG)\\Clock + +before_dll_debug: + cmd /c if not exist ..\\Debug\\Win32 md ..\\Debug\\Win32 + cmd /c if not exist $(OBJDIR_DLL_DEBUG)\\DLL md $(OBJDIR_DLL_DEBUG)\\DLL + +after_dll_debug: + +dll_debug: before_dll_debug out_dll_debug after_dll_debug + +out_dll_debug: before_dll_debug $(OBJ_DLL_DEBUG) $(DEP_DLL_DEBUG) + $(LD) -shared $(LIBDIR_DLL_DEBUG) $(OBJ_DLL_DEBUG) -o $(OUT_DLL_DEBUG) $(LDFLAGS_DLL_DEBUG) $(LIB_DLL_DEBUG) + +$(OBJDIR_DLL_DEBUG)\\DLL\\Tclock.o: DLL\\Tclock.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\Tclock.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\Tclock.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\font.o: DLL\\font.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\font.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\font.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\format.o: DLL\\format.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\format.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\format.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\main.o: DLL\\main.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\main.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\main.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\newapi.o: DLL\\newapi.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\newapi.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\newapi.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\utl.o: DLL\\utl.c + $(CC) $(CFLAGS_DLL_DEBUG) $(INC_DLL_DEBUG) -c DLL\\utl.c -o $(OBJDIR_DLL_DEBUG)\\DLL\\utl.o + +$(OBJDIR_DLL_DEBUG)\\DLL\\version.o: DLL\\version.rc + $(WINDRES) -i DLL\\version.rc -J rc -o $(OBJDIR_DLL_DEBUG)\\DLL\\version.o -O coff $(INC_DLL_DEBUG) + +clean_dll_debug: + cmd /c del /f $(OBJ_DLL_DEBUG) $(OUT_DLL_DEBUG) + cmd /c rd ..\\Debug\\Win32 + cmd /c rd $(OBJDIR_DLL_DEBUG)\\DLL + +virtual_debug: dll_debug app_debug + +.PHONY: before_app after_app clean_app before_dll after_dll clean_dll before_app_debug after_app_debug clean_app_debug before_dll_debug after_dll_debug clean_dll_debug + diff --git a/T-Clock 2010.sln b/Source/T-Clock 2010.sln similarity index 84% rename from T-Clock 2010.sln rename to Source/T-Clock 2010.sln index 50bb074f..a18da91e 100644 --- a/T-Clock 2010.sln +++ b/Source/T-Clock 2010.sln @@ -1,37 +1,37 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0455B526-7932-4D53-AAEF-0C7BBD00CE8E}" - ProjectSection(SolutionItems) = preProject - Source\To-Do List.txt = Source\To-Do List.txt - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32.Clock", "Source\Clock\Win32\Win32.Clock.vcxproj", "{27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32.DLL", "Source\DLL\Win32\Win32.DLL.vcxproj", "{6E055518-FDC0-4B59-BEB8-60A3874C8F76}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Calendar", "Source\Calendar\Calendar.vcxproj", "{1f5284e0-13ef-11e3-8ffd-0800200c9a66}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|Win32.ActiveCfg = Release|Win32 - {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|Win32.Build.0 = Release|Win32 - {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|x64.ActiveCfg = Release|x64 - {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|x64.Build.0 = Release|x64 - {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|Win32.ActiveCfg = Release|Win32 - {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|Win32.Build.0 = Release|Win32 - {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|x64.ActiveCfg = Release|x64 - {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|x64.Build.0 = Release|x64 - {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32 - {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|Win32.Build.0 = Release|Win32 - {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|x64.ActiveCfg = Release|x64 - {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0455B526-7932-4D53-AAEF-0C7BBD00CE8E}" + ProjectSection(SolutionItems) = preProject + To-Do List.txt = To-Do List.txt + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32.Clock", "Clock\Win32\Win32.Clock.vcxproj", "{27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32.DLL", "DLL\Win32\Win32.DLL.vcxproj", "{6E055518-FDC0-4B59-BEB8-60A3874C8F76}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Calendar", "Calendar\Calendar.vcxproj", "{1f5284e0-13ef-11e3-8ffd-0800200c9a66}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|Win32.ActiveCfg = Release|Win32 + {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|Win32.Build.0 = Release|Win32 + {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|x64.ActiveCfg = Release|x64 + {27EF0E4F-0E60-461B-9BA6-06AA1FF3E066}.Release|x64.Build.0 = Release|x64 + {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|Win32.ActiveCfg = Release|Win32 + {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|Win32.Build.0 = Release|Win32 + {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|x64.ActiveCfg = Release|x64 + {6E055518-FDC0-4B59-BEB8-60A3874C8F76}.Release|x64.Build.0 = Release|x64 + {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|Win32.ActiveCfg = Release|Win32 + {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|Win32.Build.0 = Release|Win32 + {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|x64.ActiveCfg = Release|x64 + {1f5284e0-13ef-11e3-8ffd-0800200c9a66}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Source/T-Clock 2010.workspace b/Source/T-Clock 2010.workspace new file mode 100644 index 00000000..d51d299e --- /dev/null +++ b/Source/T-Clock 2010.workspace @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/T-Clock-XPCalendar.cbp b/Source/T-Clock-XPCalendar.cbp similarity index 79% rename from T-Clock-XPCalendar.cbp rename to Source/T-Clock-XPCalendar.cbp index 19a80237..5bb50b9b 100644 --- a/T-Clock-XPCalendar.cbp +++ b/Source/T-Clock-XPCalendar.cbp @@ -7,7 +7,7 @@