From 35643398483374ea573dc51d0e90e1b8e3727e48 Mon Sep 17 00:00:00 2001 From: rayhogenson Date: Sat, 15 Mar 2014 00:10:09 -0800 Subject: added cmake support --- os/linux/Makefile | 19 ------ os/windows/Makefile | 18 ------ os/windows/install.nsi | 97 ------------------------------- os/windows/yetihack-windows/pdcurses.dll | Bin 118784 -> 0 bytes 4 files changed, 134 deletions(-) delete mode 100644 os/linux/Makefile delete mode 100644 os/windows/Makefile delete mode 100644 os/windows/install.nsi delete mode 100644 os/windows/yetihack-windows/pdcurses.dll (limited to 'os') diff --git a/os/linux/Makefile b/os/linux/Makefile deleted file mode 100644 index b706768..0000000 --- a/os/linux/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -yetihack: src/YetiHack.cpp src/yeti.cpp - cd src && make - -package: yetihack - strip src/yetihack - zip -j package/yetihack.zip src/yetihack - mkdir package/yetihack - cp src/yetihack package/yetihack/yetihack - cd package && tar -caf yetihack.tar.gz yetihack - rm -r package/yetihack - -install: yetihack - cp src/yetihack /usr/local/bin/ - -clean: - -rm src/*.o - -rm src/yetihack - -rm package/* - diff --git a/os/windows/Makefile b/os/windows/Makefile deleted file mode 100644 index b8985ed..0000000 --- a/os/windows/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -yetihack.exe: src/YetiHack.cpp src/yeti.cpp - i486-mingw32-g++ src/YetiHack.cpp src/yeti.cpp -o src/yetihack.exe -L os/windows/yetihack-windows/pdcurses.dll -static -lpdcurses -Iinclude -static-libgcc -static-libstdc++ -DWINDOWS - -rm os/windows/yetihack-windows/yetihack.exe - ln src/yetihack.exe os/windows/yetihack-windows/ - -package: yetihack.exe - makensis os/windows/install.nsi - cd os/windows/yetihack-windows && zip ../../../package/yetihack-windows.zip * - -install: yetihack.exe package - ./YetiHack_installer.exe - -clean: - -rm src/yetihack.exe - -rm package/YetiHack_installer.exe - -rm package/yetihack-windows.zip - -rm os/windows/yetihack-windows/yetihack.exe - diff --git a/os/windows/install.nsi b/os/windows/install.nsi deleted file mode 100644 index dfb0d65..0000000 --- a/os/windows/install.nsi +++ /dev/null @@ -1,97 +0,0 @@ -; example2.nsi -; -; This script is based on example1.nsi, but it remember the directory, -; has uninstall support and (optionally) installs start menu shortcuts. -; -; It will install example2.nsi into a directory that the user selects, - -;-------------------------------- - -; The name of the installer -Name "YetiHack Installer" - -; The file to write -OutFile "../../package/YetiHack_installer.exe" - -; The default installation directory -InstallDir $PROGRAMFILES\YetiHack - -; Registry key to check for directory (so if you install again, it will -; overwrite the old one automatically) -InstallDirRegKey HKLM "Software\YetiHack" "Install_Dir" - -; Request application privileges for Windows Vista -RequestExecutionLevel admin - -;-------------------------------- - -; Pages - -Page components -Page directory -Page instfiles - -UninstPage uninstConfirm -UninstPage instfiles - -;-------------------------------- - -; The stuff to install -Section "YetiHack" - - SectionIn RO - - SetOutPath $INSTDIR - File "../../src/yetihack.exe" - File "yetihack-windows/pdcurses.dll" - - ; Write the installation path into the registry - WriteRegStr HKLM SOFTWARE\YetiHack "Install_Dir" "$INSTDIR" - - ; Write the uninstall keys for Windows - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "YetiHack Uninstaller" "YetiHack" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "UninstallString" '"$INSTDIR\uninstall.exe"' - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "NoModify" 1 - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" "NoRepair" 1 - WriteUninstaller "uninstall.exe" - -SectionEnd - -; Optional section (can be disabled by the user) -Section "Start Menu Shortcuts" - - CreateDirectory "$SMPROGRAMS\YetiHack" - CreateShortCut "$SMPROGRAMS\YetiHack\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 - CreateShortCut "$SMPROGRAMS\YetiHack\YetiHack.lnk" "$INSTDIR\YetiHack.exe" "" "$INSTDIR\YetiHack.exe" 0 - -SectionEnd - -Section "Desktop Shortcut" - - CreateShortCut "$DESKTOP\YetiHack.lnk" "$INSTDIR\YetiHack.exe" "" "$INSTDIR\YetiHack.exe" 0 - -SectionEnd - -;-------------------------------- - -; Uninstaller - -Section "Uninstall" - - ; Remove registry keys - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YetiHack" - DeleteRegKey HKLM SOFTWARE\YetiHack - - ; Remove files and uninstaller - Delete $INSTDIR\* - Delete $INSTDIR\uninstall.exe - - ; Remove shortcuts, if any - Delete "$SMPROGRAMS\YetiHack\*.*" - Delete "$DESKTOP\YetiHack.lnk" - - ; Remove directories used - RMDir "$SMPROGRAMS\YetiHack" - RMDir "$INSTDIR" - -SectionEnd diff --git a/os/windows/yetihack-windows/pdcurses.dll b/os/windows/yetihack-windows/pdcurses.dll deleted file mode 100644 index 550c7a2..0000000 Binary files a/os/windows/yetihack-windows/pdcurses.dll and /dev/null differ -- cgit v1.3.1