-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Hurricane996/autotools
Autotools
- Loading branch information
Showing
14 changed files
with
790 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Lani Willrich - All files except for data/kernel.txt | ||
Linus Torovalds - data/kernel.txt (copied from Linux source code: kernel/groups.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/automake-1.16/INSTALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = src data man |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Hackertyper - cheesy movie hacker | ||
|
||
Hackertyper is a clone of the website [hackertyper.org](https://www.hackertyper.org/) written in C. | ||
|
||
Hackertyper outputs text to STDOUT whenever a character is recieved from STDIN. This creates the visual effect of the user typing this arbitrary text. By default, this text is a file taken from the Linux kernel source code, however it can be specified at compile time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
|
||
AC_PREREQ([2.69]) | ||
AC_INIT([hackertyper], [1.0], []) | ||
AM_INIT_AUTOMAKE | ||
|
||
default_programdata="data/kernel.txt" | ||
AC_ARG_WITH([programdata], | ||
AS_HELP_STRING([--with-programdata],[Set which data file hackertyper outputs from]) | ||
) | ||
AC_MSG_NOTICE([$with_programdata]) | ||
AS_IF([test "x$with_programdata" != "x"], | ||
[AC_SUBST([program_data],[`realpath $with_programdata`])], | ||
[AC_SUBST([program_data],[`realpath $default_programdata`])] | ||
) | ||
|
||
|
||
AC_CONFIG_SRCDIR([src/hackertyper.c]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
|
||
# Checks for libraries. | ||
|
||
# Checks for header files. | ||
AC_CHECK_HEADERS([stdlib.h string.h termios.h unistd.h]) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
|
||
# Checks for library functions. | ||
AC_CHECK_FUNCS([strtol]) | ||
|
||
AC_CONFIG_FILES([Makefile | ||
data/Makefile | ||
man/Makefile | ||
src/Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist_data_DATA = kernel.txt test_data.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
man_MANS=hackertyper.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
bin_PROGRAMS = hackertyper | ||
hackertyper_SOURCES = hackertyper.c hackertyper.h | ||
hackertyper_LDADD = program_data.o | ||
|
||
program_data.o: | ||
cp @program_data@ program_data | ||
$(LD) -r -b binary -o $@ program_data | ||
rm program_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters