annotate Makefile @ 79:8f90d5addda9 v2.0

*: refactor... basically everything! The Win32 GUI version is now unicode-friendly. HOWEVER, ANSI still very much works. you can configure which version to use through `-DUNICODE=0/1` in CFLAGS. the CLI is also friendlier and uses a more sane interface as well. note: the command line flags (which were optional before) are now required. Unicode filenames will not work on Windows because Windows sucks.
author Paper <paper@paper.us.eu.org>
date Wed, 20 Mar 2024 17:06:26 -0400
parents 207684d44b54
children c06dcab17923
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
1 _CFLAGS = -Wall -O2 -Iinclude $(CFLAGS)
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
2 _LDFLAGS = $(LDFLAGS)
54
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
3
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
4 .c.o:
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
5 $(CC) -c $(_CFLAGS) $< -o $@
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
7 # this is a unix-like version, barely functional on windows.
47
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
8 msvpvf: src/main.o src/common.o
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
9 $(CC) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
11 # windows-specific
47
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
12 gui: src/gui.o src/common.o
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
13 $(CC) -o $@ $^ -mwindows -lole32 -lshlwapi -luuid -lmsvcrt $(_LDFLAGS)
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
14
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15 clean:
79
8f90d5addda9 *: refactor... basically everything!
Paper <paper@paper.us.eu.org>
parents: 68
diff changeset
16 rm -f src/main.o src/common.o src/gui.o msvpvf gui