-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 962 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
28
29
30
31
32
33
34
35
36
37
38
39
40
DJGPP=/home/ilu/djgpp/bin
CROSS=$(DJGPP)/i586-pc-msdosdjgpp
CROSS_PLATFORM=i586-pc-msdosdjgpp-
CC=$(DJGPP)/$(CROSS_PLATFORM)gcc
AR=$(DJGPP)/$(CROSS_PLATFORM)ar
LD=$(DJGPP)/$(CROSS_PLATFORM)ld
STRIP=$(DJGPP)/$(CROSS_PLATFORM)strip
RANLIB=$(DJGPP)/$(CROSS_PLATFORM)ranlib
CFLAGS = -MMD -Wall -std=gnu99 -O2 -march=i386 -mtune=i586 -ffast-math -fomit-frame-pointer -fgnu89-inline -Wmissing-prototypes \
-DSQLITE_THREADSAFE=0 \
-DSQLITE_DEFAULT_MEMSTATUS=0 \
-DSQLITE_MAX_MMAP_SIZE=0 \
-DSQLITE_OMIT_WAL=1 \
-DSQLITE_OMIT_LOAD_EXTENSION=1 \
-DSQLITE_ENABLE_8_3_NAMES=2 \
-DSQLITE_ENABLE_LOCKING_STYLE=0 \
-DSQLITE_ENABLE_FTS5=1 \
-DSQLITE_ENABLE_JSON1=1 \
-DHAVE_NANOSLEEP=0 \
-DSQLITE_NO_SYNC=1 \
-DHAVE_USLEEP=1
LIBS = -lm -lemu
LDFLAGS =
EXE = sqlite.exe
PARTS = sqlite3.o shell.o
all: $(EXE)
%.o: %.c Makefile
$(CC) -o $@ -c $(CFLAGS) $<
$(EXE): $(PARTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
$(STRIP) $@
clean:
rm -rf *.o *.d $(EXE)