-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (27 loc) · 703 Bytes
/
makefile
File metadata and controls
41 lines (27 loc) · 703 Bytes
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
38
39
40
41
CC = gcc
CFLAGS = -D UNICODE -D _UNICODE -D _WIN32_IE=0x0300 -Wall
LD = gcc
LDLIBS = -lmingw32 -lcomctl32 -lgdi32 -lwinmm -lcomdlg32 -llua
LDFLAGS = -static -mwindows -Wall
SRC=winMain.c winForms.c winMenu.c winDraw.c ogive.c calcSurfaceArea.c calcVolume.c
OBJ=$(SRC:.c=.o)
EXE=fs.exe
all: $(SRC) $(EXE) depend
depend: .depend
.depend: $(SRC)
rm -f ./.depend
$(CC) $(CFLAGS) -MM $^ >> ./.depend
$(EXE): $(OBJ) RC
$(LD) $(OBJ) fs.o $(LDFLAGS) $(LDLIBS) -o $@
RC: fs.rc
windres -i fs.rc -o fs.o
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
.PHONY : clean install test
install: all
mv $(EXE) ../bin
clean:
rm -f *.o
test: all
./fs.exe
include .depend