-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (29 loc) · 905 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# ethflopd makefile for BSD and Linux
# http://ethflop.sourceforge.net
#
# Copyright (C) 2019 Mateusz Viste
# Copyright (c) 2020 Michael Ortmann
#
# make - builds ethflopd (BSD / Linux daemon)
# make tsr - builds ethflop.com (DOS TSR, requires NASM)
# make test - builds the test app (requires tcc 2.01)
#
# gmake on OpenBSD
# for debug
#CC = clang
#CFLAGS = -O2 -Wall -std=gnu89 -pedantic -Wextra -Wformat-security -D_FORTIFY_SOURCE=1 -Weverything -Wno-padded
# production
CC ?= gcc
CFLAGS := -O2 -std=gnu89 -Wall $(CFLAGS)
all: ethflopd
ethflopd: ethflopd.c
tsr:
nasm -f bin -l ethflop.lst -o ethflop.com ethflop.asm
test: test.c
tcc -f- -ms -w -N test.c
pkg: tsr
rm -f ethflop-*.zip
zip -9 -K ethflop-`date +%Y%m%d`.zip ethflop.com ethflop.asm ethflop.txt history.txt Makefile ethflopd.c
clean:
rm -f ethflopd ethflop.com *.o *.zip *.lst