-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_linux
32 lines (25 loc) · 1.06 KB
/
Makefile_linux
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
all: p1
CC = gcc
LIBS = -lm
CFLAGS = -Wall -g
PKG_CONFIG += $(CFLAGS) $(shell pkg-config --cflags --libs gtk+-2.0 gthread-2.0 )
GTK_CFLAGS = -I/usr/local/hybus-arm-linux-R1.1/arm-linux/include/gtk-1.2 -I/usr/local/hybus-arm-linux-R1.1/arm-linux/lib/glib/include -I/usr/local/hybus-arm-linux-R1.1/arm-linux/X11R6-arm/include
GTK_CONFIG = /usr/local/hybus-arm-linux-R1.1/bin/gtk-config
GTK_LIBS = -L/usr/local/hybus-arm-linux-R1.1/arm-linux/lib -L/usr/local/hybus-arm-linux-R1.1/arm-linux/X11R6-arm/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
LIBS += ${PKG_CONFIG}
p1: menu.o main.o battle.o loggin.o choose.o setting.o
${CC} ${LIBS} menu.o main.o battle.o loggin.o choose.o setting.o -lpthread -o p1
main.o: main.c
${CC} $(LIBS) -lpthread -c main.c
menu.o: menu.c
${CC} $(LIBS) -lpthread -c menu.c
battle.o: battle.c
${CC} $(LIBS) -lpthread -c battle.c
loggin.o: loggin.c
${CC} $(LIBS) -lpthread -c loggin.c
choose.o: choose.c
${CC} $(LIBS) -lpthread -c choose.c
setting.o: setting.c
${CC} $(LIBS) -lpthread -c setting.c
clean:
rm -rf *.o gtk_test