forked from Matthias-Wandel/imgcomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile-win32
28 lines (19 loc) · 823 Bytes
/
makefile-win32
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
#--------------------------------
# jhead makefile for Win32
#--------------------------------
# Pull in standard variable definitions
CC=cl /nologo
CFLAGS=-c -Ox -Os -W3 -D _CRT_SECURE_NO_WARNINGS
LINKER=link
LINKCON = /nologo /NODEFAULTLIB:LIBCMTD
all:imgcomp.exe run_stepper.exe
OBJ = obj
OBJECTS_IMGCOMP = $(OBJ)\main.obj $(OBJ)\config.obj $(OBJ)\compare.obj $(OBJ)\dir_win.obj \
$(OBJ)\jpeg2mem.obj $(OBJ)\jpgfile.obj $(OBJ)\exif.obj \
$(OBJ)\start_raspistill.obj $(OBJ)\util.obj
$(OBJECTS_IMGCOMP): src\$(@B).c src\imgcomp.h
$(CC) /Fo$(OBJ)\ $(CFLAGS) src\$(@B).c
imgcomp.exe: $(OBJECTS_IMGCOMP)
$(LINKER) $(LINKCON) -OUT:imgcomp.exe libjpeg\libjpeg.lib $(OBJECTS_IMGCOMP)
run_stepper.exe: src\stepper_ip.c
cl -W3 -orun_stepper.exe src\stepper_ip.c ws2_32.lib