mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@2 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
38
GNUmakefile
Normal file
38
GNUmakefile
Normal file
@@ -0,0 +1,38 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = $(shell uname -s)
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -fPIC -Iinclude -D_MILSKO
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
|
||||
L_OBJS =
|
||||
|
||||
ifeq ($(TARGET),NetBSD)
|
||||
CFLAGS += -I/usr/X11R7/include -I/usr/pkg/include
|
||||
LDFLAGS += -L/usr/X11R7/lib -L/usr/pkg/lib
|
||||
UNIX = 1
|
||||
else ifeq ($(TARGET),Linux)
|
||||
UNIX = 1
|
||||
else
|
||||
$(error Add your platform definition)
|
||||
endif
|
||||
|
||||
ifeq ($(UNIX),1)
|
||||
LIB = lib
|
||||
SO = .so
|
||||
L_OBJS += src/x11.o
|
||||
L_LIBS += -lX11
|
||||
endif
|
||||
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
all: $(LIB)milsko$(SO)
|
||||
|
||||
$(LIB)milsko$(SO): $(L_OBJS)
|
||||
$(CC) $(LDFLAGS) -shared -o $@ $(L_OBJS) $(L_LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.dll *.so *.a */*.o
|
||||
6
include/Milsko/Milsko.h
Normal file
6
include/Milsko/Milsko.h
Normal file
@@ -0,0 +1,6 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MILSKO_MILSKO_H__
|
||||
#define __MILSKO_MILSKO_H__
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user