Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
KusaReMKN committed Oct 2, 2022
1 parent 74a5e44 commit cf38621
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 90 deletions.
51 changes: 0 additions & 51 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,54 +51,3 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf

## AUTOTOOLS
# http://www.gnu.org/software/automake

Makefile.in
/ar-lib
/mdate-sh
/py-compile
/test-driver
/ylwrap

# http://www.gnu.org/software/autoconf

autom4te.cache
/autoscan.log
/autoscan-*.log
/aclocal.m4
/compile
/config.guess
/config.h.in
/config.log
/config.status
/config.sub
/configure
/configure.scan
/depcomp
/install-sh
/missing
/stamp-h1

# https://www.gnu.org/software/libtool/

/ltmain.sh

# http://www.gnu.org/software/texinfo

/texinfo.tex

# http://www.gnu.org/software/m4/

m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4

# Generated Makefile
# (meta build system like autotools,
# can automatically generate from config.status script
# (which is called by configure script))
Makefile
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CC= cc
CFLAGS= -O
RM= rm -f
SHELL= /bin/sh

all: sendwol

sendwol: sendwol.c
$(CC) $(CFLAGS) -o sendwol sendwol.c

.PHONY: clean
clean:
$(RM) sendwol
40 changes: 1 addition & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,47 +17,9 @@ Multicast to all link-local nodes on IPv4:
More details, refer the man page.

```console
% man ./sendwol.1 # instantly
% man sendwol # after installation
% man ./sendwol.1
```


## Installation

1. Download the tarball from [releases page][].

2. Extract them.
```console
% tar xvf sendwol-*.**.tar.gz
```

3. Change the working directory.
```console
% cd sendwol-*/.
```

4. Generate `Makefile`.
```console
% ./configure
```

5. Build the binary.
```console
% make
```

6. Install them.
```console
% make install
```

## Uninstallation

```console
% make uninstall
```


## License

The 2-Clause BSD License
Expand Down

0 comments on commit cf38621

Please sign in to comment.