Skip to content

Commit d6626cb

Browse files
committed
default arch x86_64
1 parent 354b93e commit d6626cb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

uinet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
all:
2+
if [ ! -f lib/machine_include/machine ];then cp -rf lib/machine_include/machine_x64 lib/machine_include/machine ;fi
23
make -C lib
34
make -C example
45

uinet/example/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -pthread
1515

1616
TARGET="helloworld"
1717
all:
18-
$(CC) -m32 -g -I../lib -o ${TARGET} main.c ${LIBS}
19-
$(CC) -m32 -g -I../lib -o ${TARGET}_epoll main_epoll.c ${LIBS}
18+
$(CC) -g -I../lib -o ${TARGET} main.c ${LIBS}
19+
$(CC) -g -I../lib -o ${TARGET}_epoll main_epoll.c ${LIBS}
2020

2121
.PHONY: clean
2222
clean:

uinet/lib/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ HOST_OS:=$(shell uname -s)
1818

1919
DEBUG=-g
2020

21-
C_DIALECT= -std=c99 -m32
21+
C_DIALECT= -std=c99
2222
CFLAGS= ${C_DIALECT} ${DEBUG} -DFSTACK
2323
KERNEL_CFLAGS= -D_KERNEL -include opt_global.h -fno-builtin
2424

@@ -32,7 +32,7 @@ NORMAL_C= ${CC} -c ${CFLAGS} ${KERNEL_CFLAGS} ${INCLUDES} $< -o $@
3232

3333
# Include search path for files that only include host OS headers
3434
HOST_INCLUDES= -I.
35-
HOST_CFLAGS = ${DEBUG} -m32
35+
HOST_CFLAGS = ${DEBUG}
3636
HOST_C= ${CC} -c $(HOST_CFLAGS) ${HOST_INCLUDES} $<
3737

3838

0 commit comments

Comments
 (0)