mirror of
https://github.com/Valeh2012/PersonalVotingMachine
synced 2025-12-09 02:15:13 +02:00
first commit
This commit is contained in:
34
basic-setup/components/u8g2/sys/sdl/gm2/Makefile
Normal file
34
basic-setup/components/u8g2/sys/sdl/gm2/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
CFLAGS = -g -Wall -Wpointer-arith -I. -I../../../csrc/. -I../../tga/mapgen/. `sdl2-config --cflags`
|
||||
|
||||
GMSRC = $(shell ls ../../../csrc/*.c) $(shell ls ../common/*.c )
|
||||
GMSRC += map.c main.c item.c
|
||||
#GMSRC += ../../../tools/ugl/ugl_bc.c
|
||||
GMSRC += ugl_bc.c
|
||||
|
||||
GMOBJ = $(GMSRC:.c=.o)
|
||||
|
||||
MAPGENSRC = $(shell ls ../../../csrc/*.c) mapgen.c u8g2_d_tga.c
|
||||
MAPGENSRC += ugl_arrays.c ugl_error.c ugl_parse.c
|
||||
|
||||
MAPGENOBJ = $(MAPGENSRC:.c=.o)
|
||||
|
||||
UGLSRC = ugl_arrays.c ugl_error.c ugl_parse.c ugl_bc.c ugl_main.c item.c map.c
|
||||
|
||||
UGLOBJ = $(UGLSRC:.c=.o)
|
||||
|
||||
|
||||
gm: $(GMOBJ) map.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(GMOBJ) `sdl2-config --libs` -o gm
|
||||
|
||||
mapgen: $(MAPGENOBJ)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(MAPGENOBJ) -o mapgen
|
||||
|
||||
map.c: mapgen gm.map
|
||||
./mapgen -o map.c gm.map
|
||||
|
||||
ugl: $(UGLOBJ) map.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(UGLOBJ) -o ugl
|
||||
|
||||
clean:
|
||||
-rm $(GMOBJ) $(MAPGENOBJ) $(UGLOBJ) gm mapgen ugl map.c
|
||||
|
||||
Reference in New Issue
Block a user