-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.18 KB
/
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
# Makefile for "planet", a fractal planet generator
# Change the following if your C compiler isn't called 'gcc'.
CC=cc
# And change this to your favourite C compiler flags:
CFLAGS = -O2 -s -flto -w -ansi
# Original code is very old - have to disable warnings else it will vomit walls in your face
# I have attempted to "modernize" the code in my modified version.
CFLAGS_MOD = -O2 -s -flto -Wall -Wextra -pedantic -ansi
LIBS = -lm
all: planet planet_mod
planet:
$(CC) $(CFLAGS) planet.c -o planet $(LIBS)
@echo "planet made"
planet_mod:
$(CC) $(CFLAGS_MOD) planet_mod.c -o planet_mod $(LIBS)
@echo "planet_mod made"
clean:
rm -f planet planet_mod planet.exe planet_mod.exe
SHARFILES = Manual.pdf Makefile readme.txt \
planet.c planet_mod.c \
Bathymetric.col Blackbody.col Lefebvre.col Lefebvre2.col grayscale.col \
Olsson.col Olsson2.col OlssonLight.col default.col defaultB.col \
burrows.col burrowsB.col mars.col light.col lava.col white.col wood.col yellow.col \
Colors.rgb Gray.rgb Jons.rgb Mars.rgb White.rgb Yellow.rgb earth.map default.bio
share: $(SHARFILES)
tar c -f planet.tar $(SHARFILES)
distclean:
rm -f planet.tar