-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
27 lines (21 loc) · 838 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
CFLAGS=-g -I.
LFLAGS=
CC = gcc
facetrain: facetrain.o imagenet.o backprop_initr.o pgmimage.o
$(CC) ${LFLAGS} facetrain.o imagenet.o backprop_initr.o pgmimage.o \
-o facetrain -lm
hidtopgm: hidtopgm.o pgmimage.o backprop_initr.o
$(CC) ${LFLAGS} hidtopgm.o pgmimage.o backprop_initr.o \
-o hidtopgm -lm
outtopgm: outtopgm.o pgmimage.o backprop_initr.o
$(CC) ${LFLAGS} outtopgm.o pgmimage.o backprop_initr.o \
-o outtopgm -lm
facetrain_init0: facetrain.o imagenet.o backprop_init0.o pgmimage.o
$(CC) ${LFLAGS} facetrain.o imagenet.o backprop_init0.o pgmimage.o \
-o facetrain_init0 -lm
backprop_initr.o: backprop.c backprop.h
$(CC) ${CFLAGS} -c backprop.c
mv backprop.o backprop_initr.o
backprop_init0.o: backprop.c backprop.h
$(CC) ${CFLAGS} -c -DINITZERO backprop.c
mv backprop.o backprop_init0.o