From a08213c863239d4955eeebe7733e1a759425f054 Mon Sep 17 00:00:00 2001 From: kremlin Date: Wed, 21 May 2014 20:31:39 -0500 Subject: [PATCH] delete gnu makefile, revamp bsd makefile --- Makefile | 65 +++++++++++++++++++++------ Makefile.tmp | 125 --------------------------------------------------- src/test.c | 7 +++ 3 files changed, 59 insertions(+), 138 deletions(-) delete mode 100644 Makefile.tmp create mode 100644 src/test.c diff --git a/Makefile b/Makefile index 222a403..9d3130d 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,57 @@ -CC=gcc -BINPATH=bin/ -CFLAGS=-c -Wall -std=gnu99 -DEVFLAGS= -g -o $(BINPATH)devel/outfile-tmp \ --Wextra -Werror -pedantic \ --O0 $(SOURCES) +# stick to what we have for now +ONLY_FOR_ARCHS = amd64 +#NOT_FOR_ARCHS = +#SHARED_ONLY = +#COMES_WITH = -SOURCES=main.c +COMMENT = dbus utilities -.PHONY: all build clean install +DISTNAME = dbus-utils-0.1 -all: - $(CC) $(CFLAGS) $(DEVFLAGS) +CATEGORIES = misc -clean: -build: -install: +HOMEPAGE = http://uglyman.kremlin.cc +MAINTAINER = kremlin + +# LGPLv1.3+ (glib) +PERMIT_PACKAGE_CDROM = Yes + +# for now +WANTLIB = c gio-2.0 glib-2.0 + +#TODO: see if it's okay to host this +MASTER_SITES = http://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git;a=snapshot;h=refs/heads/master;sf=tgz + +#MODULES = ??? +#BUILD_DEPENDS = ??? +#RUN_DEPENDS = ??? +#TEST_DEPENDS = ??? +LIB_DEPENDS = x11/dbus>=1.8.2v0 \ + devel/glib2 + +#MAKE_FLAGS = ??? +#MAKE_ENV = ??? +#FAKE_FLAGS = ??? +#TEST_FLAGS = ??? + +# build/configuration variables +# +#SEPARATE_BUILD = Yes (build in a directory other than WRKSRC) +#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC) +CONFIGURE_STYLE = simple + +#CFLAGS = ??? +#LDFLAGS = ??? +#MAKE_FILE = ??? +#PKG_ARCH = ??? (* for arch-independent packages) +#WRKDIST = ??? if other than ${WRKDIR}/${DISTNAME} +#WRKSRC = ??? if other than ${WRKDIST} +#WRKBUILD = ??? if other than ${WRKSRC} +#WRKCONF = ??? if other than ${WRKBUILD} + +#ALL_TARGET = ??? +#INSTALL_TARGET = ??? +#TEST_TARGET = ??? + +.include diff --git a/Makefile.tmp b/Makefile.tmp deleted file mode 100644 index a747147..0000000 --- a/Makefile.tmp +++ /dev/null @@ -1,125 +0,0 @@ -# TODO: modify below as you test on new machines -ONLY_FOR_ARCHS = amd64 -#NOT_FOR_ARCHS = ??? -#SHARED_ONLY = ??? -#COMES_WITH = ??? -#BROKEN = reason - -COMMENT = Provides drop-in support for systemd utilities hostnamed, \ -localed, timedated, and logind - -# TODO: think of better name -PKGNAME = dbus-utilities - -# one package with each component -#PKGNAME-foo = ??? for multi packages - -# for any port that creates shared libraries. -# both libtool and cmake handle this automatically. -# for libtool-based ports, have a look at WRKBUILD/shared_libs.log -#SHARED_LIBS = ??? - -CATEGORIES = devel - -HOMEPAGE = http://uglyman.kremlin.cc - -MAINTAINER = ian - -# TODO: make sure this stays true/check for GPL poison -PERMIT_PACKAGE_CDROM = Yes -PERMIT_PACKAGE_FTP = Yes -PERMIT_DISTFILES_FTP = Yes - -# "make port-lib-depends-check" can help -#WANTLIB = ??? - -MASTER_SITES = git://uglyman.kremlin.cc/git/systemd-utl.git \ - http://uglyman.kremlin.cc - -# TODO: list deps :( -# Dependencies -#MODULES = ??? -#BUILD_DEPENDS = ??? -#RUN_DEPENDS = ??? -#LIB_DEPENDS = ??? -#TEST_DEPENDS = ??? - -#MAKE_FLAGS = ??? -#MAKE_ENV = ??? -#FAKE_FLAGS = ??? -#TEST_FLAGS = ??? - -SEPARATE_BUILD = Yes -USE_GMAKE = Yes -USE_GROFF = Yes -# is it okay to use gmake/auto* tools? landry@ ajacoutot@ -# Programs that require GNU libtool to build instead of the OpenBSD one -# should use this option. -#USE_LIBTOOL= gnu -# Set CONFIGURE_STYLE to value corresponding to some standard configuration -# perl [modbuild]: perl's MakeMaker Makefile.PL (modbuild: perl's -# Module::Build Build.PL) -# gnu [autoconf] [old] [dest]: gnu style configure (old: no -# sysconfdir), (dest: add DESTDIR, does not handle it), -# (autoconf: needed by port, implies gnu) -# XXX: cygnus products do NOT use autoconf for making the main -# configure from configure.in -# imake [noman]: port uses imake for configuration. -# (noman: no man page installation) -# simple: port has its own configure script -#CONFIGURE_STYLE = -#CONFIGURE_SCRIPT = ??? (if other than configure) -#CONFIGURE_ARGS += ${CONFIGURE_SHARED} -#CONFIGURE_ENV = ??? - -# for gnu stuff -#AUTOCONF_VERSION = ??? (defaults to 2.13) -#AUTOMAKE_VERSION = ??? (defaults to 1.4) -# config.guess and others are copied here -#MODGNU_CONFIG_GUESS_DIRS = ??? (defaults to ${WRKSRC}) - -# Is the build automagic or is it interactive -# -#IS_INTERACTIVE = Yes -#TEST_IS_INTERACTIVE = Yes - -# TODO: flavors, later on -# Assume you have one multiple choice flavor: 1 2 3 and switches a b. -# You would write -# -#FLAVORS = 1 2 3 a b -#FLAVOR ?= -# grab multiple choice value -#CHOICE = ${FLAVOR:Na:Nb} -# check that CHOICE is 1 OR 2 OR 3, or error out -#.if ${CHOICE} == "1" -# code for 1 -#.elif ${CHOICE} == "2" -# code for 2 -#.elif ${CHOICE} == "3" -# code for 3 -#.else -#ERRORS += "Fatal: Conflicting flavor: ${FLAVOR}" -#.endif -# check for switches -#.if ${FLAVOR:Ma} -# code for a -#.endif -#.if ${FLAVOR:Mb} -# code for b -#.endif - -CFLAGS = ??? -LDFLAGS = ??? -MAKE_FILE = ??? -PKG_ARCH = ??? (* for arch-independent packages) -#WRKDIST = ??? if other than ${WRKDIR}/${DISTNAME} -#WRKSRC = ??? if other than ${WRKDIST} -#WRKBUILD = ??? if other than ${WRKSRC} -#WRKCONF = ??? if other than ${WRKBUILD} - -#ALL_TARGET = ??? -#INSTALL_TARGET = ??? -#TEST_TARGET = ??? - -.include diff --git a/src/test.c b/src/test.c new file mode 100644 index 0000000..7a0d21a --- /dev/null +++ b/src/test.c @@ -0,0 +1,7 @@ +#include + +#include + +int main() { + return 0; +} -- 2.41.0